上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页
摘要: Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and 阅读全文
posted @ 2017-12-02 07:58 逸朵 阅读(159) 评论(0) 推荐(0)
摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be 阅读全文
posted @ 2017-12-02 06:38 逸朵 阅读(149) 评论(0) 推荐(0)
摘要: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam 阅读全文
posted @ 2017-12-02 05:42 逸朵 阅读(162) 评论(0) 推荐(0)
摘要: Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f 阅读全文
posted @ 2017-12-02 01:23 逸朵 阅读(129) 评论(0) 推荐(0)
摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't 阅读全文
posted @ 2017-11-29 12:53 逸朵 阅读(150) 评论(0) 推荐(0)
摘要: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have t 阅读全文
posted @ 2017-11-29 12:39 逸朵 阅读(195) 评论(0) 推荐(0)
摘要: Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. 阅读全文
posted @ 2017-11-29 09:42 逸朵 阅读(133) 评论(0) 推荐(0)
摘要: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have t 阅读全文
posted @ 2017-11-29 09:18 逸朵 阅读(143) 评论(0) 推荐(0)
摘要: Description: Count the number of prime numbers less than a non-negative number, n. 阅读全文
posted @ 2017-11-29 07:24 逸朵 阅读(137) 评论(0) 推荐(0)
摘要: Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For example, given the range [5, 阅读全文
posted @ 2017-11-29 07:03 逸朵 阅读(123) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 28 下一页