摘要:
https://leetcode.com/problems/sort-colors/#/description Given an array with n objects colored red, white or blue, sort them so that objects of the sam
阅读全文
posted @ 2017-07-08 10:48
Premiumlab
阅读(85)
推荐(0)
摘要:
https://leetcode.com/problems/binary-search-tree-iterator/#/description Implement an iterator over a binary search tree (BST). Your iterator will be i
阅读全文
posted @ 2017-07-07 22:12
Premiumlab
阅读(112)
推荐(0)
摘要:
https://leetcode.com/problems/flatten-nested-list-iterator/#/description Given a nested list of integers, implement an iterator to flatten it. Each el
阅读全文
posted @ 2017-07-07 21:01
Premiumlab
阅读(125)
推荐(0)
摘要:
https://leetcode.com/problems/merge-intervals/#/solutions Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2
阅读全文
posted @ 2017-07-07 17:51
Premiumlab
阅读(116)
推荐(0)
摘要:
https://leetcode.com/problems/word-break/#/description Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, dete
阅读全文
posted @ 2017-07-07 16:51
Premiumlab
阅读(174)
推荐(0)
摘要:
https://leetcode.com/problems/add-and-search-word-data-structure-design/#/description Design a data structure that supports the following two operatio
阅读全文
posted @ 2017-07-06 17:21
Premiumlab
阅读(169)
推荐(0)
摘要:
https://leetcode.com/problems/inorder-successor-in-bst/#/description Given a binary search tree and a node in it, find the in-order successor of that
阅读全文
posted @ 2017-07-06 14:53
Premiumlab
阅读(171)
推荐(0)
摘要:
https://leetcode.com/problems/one-edit-distance/#/description Given two strings S and T, determine if they are both one edit distance apart. Sol: In c
阅读全文
posted @ 2017-07-06 14:09
Premiumlab
阅读(225)
推荐(0)
摘要:
https://leetcode.com/problems/number-of-islands/#/description Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An isl
阅读全文
posted @ 2017-07-05 21:52
Premiumlab
阅读(172)
推荐(0)
摘要:
https://leetcode.com/problems/find-the-celebrity/#/description Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, ther
阅读全文
posted @ 2017-07-05 11:40
Premiumlab
阅读(121)
推荐(0)