摘要:
中缀表达式(Infix expression)即符合a op b的格式, 后缀表达式(Post Fix expression)即符合a b op 的格式。为什么要有后缀表达式?原因在于后缀表达式可以很容易的被计算机理解。 举个例子,a*(b+c)/d, 转化为后缀表达式是abc+*d/, 计算机会用 阅读全文
摘要:
Process analysis The solution above uses one stack. If you use two stacks, there are the following two ways. Solution 1 - do pre-order non-recursive f 阅读全文
摘要:
BST Definition BST is short for Binary Search Tree, by definition, the value of right node is always greater or equal to the root node, the value of l 阅读全文
摘要:
第一次用C#描述链表,和大学时用C++ 描述链表的感觉很一致,用visual studio很快就可以实现单向链表,双向链表, 和循环链表。 The reference type of C# is a key, and play the same role as pointer in C++. 上一段 阅读全文
摘要:
Problem description Given a text file, show the spell errors from it. (https://www.andrew.cmu.edu/course/15-200/s06/applications/labs/lab3/) Psuedo Co 阅读全文
摘要:
HashTable 主要包含: 扩展: C# 中的HashTable Class 用的是相同的思想,第一级是数组 data【Size】, 每一元素类型是ArrayList<Bucket> Bucket is a custom class, it contains Key, Value propert 阅读全文