目前分類:hard (6)

瀏覽方式: 標題列表 簡短摘要

316Remove 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.

angledark0123 發表在 痞客邦 留言(0) 人氣()

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.

angledark0123 發表在 痞客邦 留言(0) 人氣()

269Alien Dictionary


angledark0123 發表在 痞客邦 留言(0) 人氣()

23Merge k Sorted Lists

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.

angledark0123 發表在 痞客邦 留言(0) 人氣()

 

angledark0123 發表在 痞客邦 留言(0) 人氣()

761. Special Binary String

Special binary strings are binary strings with the following two properties:

angledark0123 發表在 痞客邦 留言(0) 人氣()