上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 80 下一页
摘要: Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express... 阅读全文
posted @ 2015-05-03 19:49 匡子语 阅读(259) 评论(0) 推荐(0)
摘要: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep... 阅读全文
posted @ 2015-04-30 17:36 匡子语 阅读(188) 评论(0) 推荐(0)
摘要: Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru... 阅读全文
posted @ 2015-04-29 15:45 匡子语 阅读(179) 评论(0) 推荐(0)
摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl... 阅读全文
posted @ 2015-04-27 13:12 匡子语 阅读(244) 评论(0) 推荐(0)
摘要: 自己学了这么久的C语言,但没有写出过什么可以用的东西来,总觉得心里不爽。这几天实在是不想干正事,在网上瞎逛逛,结果发现有人写了连连看的外挂。顿时觉得这很有意思啊。于是把代码下载下来,捣鼓了捣鼓。发现还挺简单的,于是自己研究了一下,仿照着写了一个。外挂的主要思路:获取窗口位置,获取屏幕信息对图片... 阅读全文
posted @ 2015-04-24 15:11 匡子语 阅读(2675) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 80 下一页