随笔分类 -  算法

Reverse Polish Notation用堆栈实现逆波兰表达式
摘要:import java.io.IOException; import java.util.*; public class Class1 { public static void main(String[] args) throws IOException{ String[] tokens = new String[]{"2","1","+","3","*"}; ... 阅读全文

posted @ 2016-09-27 14:57 编程007 阅读(141) 评论(0) 推荐(0)

修改后的迷宫算法(原版为http://blog.csdn.net/sunshinedabby/article/details/6284779)
摘要:// maze.cpp : 定义控制台应用程序的入口点。//#include#includeusing namespace std;struct PosType//迷宫坐标位置类型{int x;//行值int y;//列值};#define MAXLENGTH 100 //设迷宫的最大行列为25ty... 阅读全文

posted @ 2014-12-24 00:17 编程007 阅读(357) 评论(0) 推荐(0)