- 博客(4)
- 收藏
- 关注
原创 【LeetCode】337. House Robber III
The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour
2016-07-21 19:38:39 273
原创 【LeetCode】230. Kth Smallest Element in a BST
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.Note: You may assume k is always valid, 1 ≤ k ≤ BST's total elements.Follow up:What if the
2016-07-21 10:04:47 246
原创 【LeetCode】12. Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Subscribe to see which companies asked this questionclass Solution {public:
2016-07-18 23:36:16 201
原创 【LeetCode】318. Maximum Product of Word Lengths
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower case le
2016-07-18 15:41:31 239
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人