摘要:
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl... 阅读全文
posted @ 2015-08-11 23:38
irun
阅读(248)
评论(0)
推荐(0)
摘要:
Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume that the arr... 阅读全文
posted @ 2015-08-11 23:07
irun
阅读(150)
评论(0)
推荐(0)
摘要:
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1... 阅读全文
posted @ 2015-08-11 00:01
irun
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号