2014年11月20日

Linked List Cycle

摘要: Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?这道题要用双指针,但我想试一下投机取巧的办法行不行... 阅读全文

posted @ 2014-11-20 19:56 luckygxf 阅读(132) 评论(0) 推荐(0) 编辑

Evaluate Reverse Polish Notation

摘要: Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may ... 阅读全文

posted @ 2014-11-20 19:05 luckygxf 阅读(135) 评论(0) 推荐(0) 编辑

java 词法分析器

摘要: 参考:http://www.cnblogs.com/yanlingyin/archive/2012/04/17/2451717.html实现了一个简单的java词法分析器功能:词法分析下面一段java小程序1 int sum = 0; for(int i = 1; i 9>=10= 'a' && i... 阅读全文

posted @ 2014-11-20 16:26 luckygxf 阅读(488) 评论(0) 推荐(0) 编辑

Triangle

摘要: TriangleGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given... 阅读全文

posted @ 2014-11-20 00:02 luckygxf 阅读(215) 评论(0) 推荐(0) 编辑

导航