- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 14. Longest Common Prefix
题目就是找最长公共前缀,很简单,直接写代码:class Solution { public: string longestCommonPrefix(vector<string> &strs) { if(strs.empty()) return ""; else if(strs.size() == 1) retur
2017-05-30 14:12:16 203
原创 Leetcode 113. Path Sum II
题目描述: Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.For example: Given the below binary tree and sum = 22, 5 / \
2017-05-21 21:35:05 255
原创 leetcode 112. Path Sum
题目: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example: Given the below binary tree and su
2017-05-14 23:14:47 206
原创 Leetcode 520
Leetcode 520题目: Given a word, you need to judge whether the usage of capitals in it is right or not.We define the usage of capitals in a word to be right when one of the following cases holds:All lett
2017-05-14 20:39:59 256
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人