leetcode
文章平均质量分 75
xiaomaolearnCoding
这个作者很懒,什么都没留下…
展开
-
N sum Question
N sum Question2 sum,3 sum and 3 Sum closet4 sum - > K sum原创 2015-01-10 06:59:41 · 363 阅读 · 0 评论 -
Reverse String Question
Reverse String Question1 Reverse the string word by word (from leetcode)For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes a word? A sequence原创 2015-01-14 08:17:41 · 379 阅读 · 0 评论 -
Factorial Trailing Zeros
leetcode questionGiven an integer n, return the number of trailing zeroes in n!.Your solution should be in logarithmic time complexity.need to pay attention basic situation is N <= 0, no zero!原创 2015-01-13 08:14:26 · 1487 阅读 · 0 评论 -
Path Sum
最开始觉得很简单dfs的题,但是再做的时候才发现第一次做的时候很多问题并没有想清楚想明白结合面经把这道题重新做一遍。1 Path Sum from root to leafleetcode原题 pathsumiiGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equ原创 2015-03-08 06:50:05 · 335 阅读 · 0 评论 -
Remove duplicate 问题
leetcode上有四道题,主要是remove from linked list和array都是two pointer解决,要注意终止条件,还有移动指针时条件原创 2015-04-08 05:44:29 · 952 阅读 · 0 评论