问题描述: Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target nu ...
分类:
其他好文 时间:
2018-07-07 00:31:53
阅读次数:
168
Example: 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 woul ...
分类:
其他好文 时间:
2018-07-05 15:51:29
阅读次数:
162
Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is po ...
分类:
编程语言 时间:
2018-06-29 15:02:32
阅读次数:
964
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-06-29 01:14:22
阅读次数:
170
今天开始研究YYCategories的Foundation扩展类。 它包含了作者对14个Foundation框架的扩展。在详细研究每一个扩展类前我发现了一个小知识点。 NS_ASSUME_NONNULL_BEGIN和NS_ASSUME_NONNULL_END。 两个宏中间包含的属性,参数值,返回值, ...
分类:
移动开发 时间:
2018-06-28 12:13:59
阅读次数:
452
问题描述: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume th ...
分类:
其他好文 时间:
2018-06-26 10:58:54
阅读次数:
183
Description Write a method to replace all spaces in a string with %20. The string is given in a characters array, you can assume it has enough space f ...
分类:
编程语言 时间:
2018-06-24 13:14:29
阅读次数:
173
Given an array of size n, find the majority element. The majority element is the element that appears more than? n/2 ? times. You may assume that the ...
分类:
其他好文 时间:
2018-06-23 22:39:17
阅读次数:
118
Description Find the first unique character in a given string. You can assume that there is at least one unique character in the string. Description D ...
分类:
其他好文 时间:
2018-06-23 11:32:59
阅读次数:
168
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, ...
分类:
其他好文 时间:
2018-06-22 22:46:40
阅读次数:
233