码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
Easy Game (区间DP)
Easy Game LightOJ - 1031 You are playing a two player game. Initially there are n integer numbers in an array and player A and B get chance to take th ...
分类:其他好文   时间:2018-12-04 17:24:34    阅读次数:389
783. Minimum Distance Between BST Nodes
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa ...
分类:其他好文   时间:2018-12-04 13:23:24    阅读次数:199
Merge array and hash in ruby if key appears in array
I have two arrays one = [1,2,3,4,5,6,7] and two = [{1=>'10'},{3=>'22'},{7=>'40'}] Two will have one.length hashes or less. I want a new array of value ...
分类:移动开发   时间:2018-12-04 11:33:14    阅读次数:235
LeetCode 389. Find the Difference
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:其他好文   时间:2018-12-03 22:56:29    阅读次数:187
LeetCode 371. Sum of Two Integers
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and . Example: Given a = 1 and b = 2, return 3. ...
分类:其他好文   时间:2018-12-03 22:08:48    阅读次数:207
350. Intersection of Two Arrays II
Given two arrays, write a function to compute their intersection. Example 1: Example 2: Note: Each element in the result should appear as many times a ...
分类:其他好文   时间:2018-12-03 21:38:37    阅读次数:210
205. Isomorphic Strings - Easy
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:其他好文   时间:2018-12-03 20:16:19    阅读次数:204
1. Two Sum - Easy
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 ...
分类:其他好文   时间:2018-12-03 14:02:11    阅读次数:150
LeetCode - Backspace String Compare
注意,这道题都是需要 time O(n) 和 space O(1)的,所以需要用 two pointer来做,注意最后结束条件: ...
分类:其他好文   时间:2018-12-03 10:30:54    阅读次数:141
LeetCode 167. Two Sum II – Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:其他好文   时间:2018-12-03 00:51:39    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!