Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.
- Feb 27 Tue 2018 12:56
-
Leetcode Greedy 316 @ Java
316. Remove Duplicate Letters
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your result is the smallest in lexicographical order among all possible results.
- Feb 27 Tue 2018 10:13
-
Leetcode DP 140 @Java
140. Word Break II
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. You may assume the dictionary does not contain duplicate words.
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. You may assume the dictionary does not contain duplicate words.
- Feb 09 Fri 2018 16:01
-
Leetcode Graph 269 @Java
- Jan 30 Tue 2018 09:52
-
Leetcode Heap 23 @ Java
23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.
- Jan 25 Thu 2018 11:16
-
Leetcode String 44 @ Java
- Jan 08 Mon 2018 08:35
-
Leetcode 761 @ Java
761. Special Binary String
Special binary strings are binary strings with the following two properties:
Special binary strings are binary strings with the following two properties:
1