摘要: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For 阅读全文
posted @ 2016-09-17 11:26 Machelsky 阅读(278) 评论(0) 推荐(0)
摘要: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文
posted @ 2016-09-17 10:47 Machelsky 阅读(163) 评论(0) 推荐(0)
摘要: Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 阅读全文
posted @ 2016-09-17 09:27 Machelsky 阅读(136) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: 阅读全文
posted @ 2016-09-17 08:27 Machelsky 阅读(186) 评论(0) 推荐(0)
摘要: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: So 阅读全文
posted @ 2016-09-17 07:27 Machelsky 阅读(210) 评论(0) 推荐(0)
摘要: Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example,If nums =  阅读全文
posted @ 2016-09-17 07:03 Machelsky 阅读(132) 评论(0) 推荐(0)