数据结构
文章平均质量分 83
likecool21
这个作者很懒,什么都没留下…
展开
-
c++写的计算器
数据结构课的作业。利用两个堆栈,一个存放输入的操作数和操作符,一个用来实现后缀自动机,包括了正负号的识别。基于”Data Strctures and Probem Solving Using C++“。 // // Evaluator.h // Calculator // // Created by Z on 12-11-26. // Copyright (c) 2012年 Z. A原创 2012-11-28 17:12:49 · 784 阅读 · 0 评论 -
Stanford Algorithms学习:Clustering 2
这是紧接上面的一道题,比较有趣 Question 2 In this question your task is again to run the clustering algorithm from lecture, but on a MUCH bigger graph. So big, in fact, that the distances (i.e., edge costs原创 2013-09-21 08:54:09 · 2460 阅读 · 0 评论 -
Reverse A Linked List
在stackoverflow上看到一个好的方案。http://stackoverflow.com/questions/354875/reversing-a-linked-list-in-java-recursively Three questions to ask: What is the reverse of null (the empty list)? null. What转载 2014-01-03 11:48:56 · 757 阅读 · 0 评论