码迷,mamicode.com
首页 >  
搜索关键字:assume    ( 1858个结果
398. Random Pick Index
问题描述: 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
[LeetCode]题1:two sum
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
(Java) LeetCode 392. Is Subsequence —— 判断子序列
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
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 ...
分类:其他好文   时间:2018-06-29 01:14:22    阅读次数:170
iOS---学习研究大牛Git高星项目YYCategories(四)
今天开始研究YYCategories的Foundation扩展类。 它包含了作者对14个Foundation框架的扩展。在详细研究每一个扩展类前我发现了一个小知识点。 NS_ASSUME_NONNULL_BEGIN和NS_ASSUME_NONNULL_END。 两个宏中间包含的属性,参数值,返回值, ...
分类:移动开发   时间:2018-06-28 12:13:59    阅读次数:452
169. Majority Element
问题描述: 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
212. Space Replacement【LintCode by java】
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
leetcode 169. Majority Element
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
209. First Unique Character in a String
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
LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal
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
1858条   上一页 1 ... 29 30 31 32 33 ... 186 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!