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
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
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
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
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
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
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
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
注意,这道题都是需要 time O(n) 和 space O(1)的,所以需要用 two pointer来做,注意最后结束条件: ...
分类:
其他好文 时间:
2018-12-03 10:30:54
阅读次数:
141
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