码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
[LC] 293. Flip Game
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu ...
分类:其他好文   时间:2020-01-01 13:29:36    阅读次数:62
[LC] 23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: ...
分类:其他好文   时间:2020-01-01 11:48:12    阅读次数:88
4. 寻找两个有序数组的中位数
链接:https://leetcode cn.com/problems/median of two sorted arrays 给定两个大小为 m 和 n 的有序数组?nums1 和?nums2。 请你找出这两个有序数组的中位数,并且要求算法的时间复杂度为?O(log(m + n))。 你可以假设? ...
分类:编程语言   时间:2019-12-31 18:47:37    阅读次数:83
1009 Product of Polynomials (25分) 多项式乘法
1009 Product of Polynomials (25分) This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file cont ...
分类:其他好文   时间:2019-12-31 10:31:50    阅读次数:150
LeetCode——004-Median-of-Two-Sorted-Arrays
Description There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time c ...
分类:其他好文   时间:2019-12-31 01:21:16    阅读次数:63
2.两数相加
题目: 给出两个?非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照?逆序?的方式存储的,并且它们的每个节点只能存储?一位?数字。 如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。 链接:https://leetcode cn.com/problems/add two ...
分类:其他好文   时间:2019-12-30 23:15:28    阅读次数:85
leetcode 2.Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:其他好文   时间:2019-12-30 09:58:18    阅读次数:102
leetcode 4.Median of Two Sorted Arrays
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:其他好文   时间:2019-12-30 09:42:02    阅读次数:50
leetcode 1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2019-12-30 09:37:47    阅读次数:60
LeetCode_496. Next Greater Element I
496. Next Greater Element I Easy Easy Easy You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. F ...
分类:其他好文   时间:2019-12-30 09:36:29    阅读次数:60
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!