原创 Tree的學習

demo代碼如下。歡迎指正與討論。#include <iostream> #include <queue> #include <stack> using namespace std; template <typename T>  stru

原创 Infix to Postfix

僞代碼如下:1. Scan the Infix Expression from left to right.2. If the scannned character is an operand, copy it to the Postfix

原创 我的友情鏈接

51CTO博客開發

原创 seach tree的deletion的實現——對樹的指針的進一步理解

    一顆binary search tree,我們要在其中刪除node1。而node1對應的key是,比如說,key1.刪除的基本想法是什麼呢?    1.找到key1對應的那個node在哪裏。這個用一個迭代就可以完成了。2.刪掉這個n

原创 我的友情鏈接

51CTO博客開發