摘要:
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].二叉树... 阅读全文
posted @ 2015-04-17 21:33
匡子语
阅读(228)
评论(0)
推荐(0)
摘要:
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".For C programmers: Try to solv... 阅读全文
posted @ 2015-04-17 16:08
匡子语
阅读(286)
评论(0)
推荐(0)
摘要:
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an... 阅读全文
posted @ 2015-04-17 14:29
匡子语
阅读(160)
评论(0)
推荐(0)
摘要:
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.思路:编程之美里有,就是找因子5的个数。int trail... 阅读全文
posted @ 2015-04-17 14:21
匡子语
阅读(133)
评论(0)
推荐(0)
摘要:
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ... 阅读全文
posted @ 2015-04-17 14:12
匡子语
阅读(207)
评论(0)
推荐(0)

浙公网安备 33010602011771号