This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* btree traversal - most left to most right */ | |
| pnode traverse(pnode root, void (*func)(pnode)) | |
| { | |
| pnode ret, tmp = root; | |
| if(!root) return root; | |
| while((tmp = traverse(tmp->left, func))){; } | |
| ret = traverse(root->right, fun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Function and alias for ~/.bashrc to checkout a private gist by hash | |
| # TRY IT OUT | |
| # checkout this very gist after you copy/pasted this file into your ~/.bashrc | |
| # with this terminal command: | |
| # gist 1343759 | |
| # temp dir for checkouts | |
| GIST_DIR=~/gist_tmp | |
NewerOlder