摘要:
QuestionA traditional constructing tree problem.Given a string to represent relationships, and print out number n level names.For example,Input:"Frank... 阅读全文
摘要:
QuestionGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepe... 阅读全文
摘要:
QuestionGiven a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set ... 阅读全文
摘要:
QuestionGiven a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequential... 阅读全文
摘要:
QuestionGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where... 阅读全文
摘要:
QuestionDesign a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word o... 阅读全文
摘要:
Question Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. Solut 阅读全文
摘要:
QuestionGiven a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is l... 阅读全文
摘要:
QuestionGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm s... 阅读全文
摘要:
Question Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord 阅读全文