摘要:
https://leetcode.com/problems/word-ladder/#/description Given two words (beginWord and endWord), and a dictionary's word list, find the length of shor
阅读全文
posted @ 2017-07-12 17:00
Premiumlab
阅读(186)
推荐(0)
摘要:
Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number m
阅读全文
posted @ 2017-07-12 14:42
Premiumlab
阅读(125)
推荐(0)
摘要:
https://leetcode.com/problems/increasing-triplet-subsequence/#/description Given an unsorted array return whether an increasing subsequence of length
阅读全文
posted @ 2017-07-12 14:01
Premiumlab
阅读(106)
推荐(0)
摘要:
https://leetcode.com/problems/combination-sum-iv/#/description Given an integer array with all positive numbers and no duplicates, find the number of
阅读全文
posted @ 2017-07-12 13:35
Premiumlab
阅读(119)
推荐(0)
摘要:
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3
阅读全文
posted @ 2017-07-12 13:20
Premiumlab
阅读(130)
推荐(0)
摘要:
https://leetcode.com/problems/insert-delete-getrandom-o1/#/description Design a data structure that supports all following operations in average O(1)
阅读全文
posted @ 2017-07-11 22:04
Premiumlab
阅读(110)
推荐(0)
摘要:
https://leetcode.com/problems/subsets-ii/#/description Given a collection of integers that might contain duplicates, nums, return all possible subsets
阅读全文
posted @ 2017-07-11 18:39
Premiumlab
阅读(109)
推荐(0)
摘要:
https://leetcode.com/problems/implement-trie-prefix-tree/#/description Implement a trie with insert, search, and startsWith methods. Note:You may assu
阅读全文
posted @ 2017-07-11 18:13
Premiumlab
阅读(111)
推荐(0)
摘要:
https://leetcode.com/problems/search-in-rotated-sorted-array/#/description Suppose an array sorted in ascending order is rotated at some pivot unknown
阅读全文
posted @ 2017-07-11 12:01
Premiumlab
阅读(131)
推荐(0)
摘要:
https://leetcode.com/problems/simplify-path/#/description Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", =>
阅读全文
posted @ 2017-07-11 10:35
Premiumlab
阅读(133)
推荐(0)