随笔分类 -  Leetcode

摘要:Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ... 阅读全文
posted @ 2014-10-12 16:09 iCH1990 阅读(179) 评论(0) 推荐(0)
摘要:Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runti... 阅读全文
posted @ 2014-04-18 17:04 iCH1990 阅读(141) 评论(0) 推荐(0)
摘要:Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clari... 阅读全文
posted @ 2014-03-31 17:58 iCH1990 阅读(259) 评论(0) 推荐(0)