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
| #!/usr/bin/python | |
| # coding=utf-8 | |
| # Python version of Zach Holman's "spark" | |
| # https://github.com/holman/spark | |
| # by Stefan van der Walt <stefan@sun.ac.za> | |
| """ | |
| USAGE: |
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
| .navbar | |
| .caret | |
| .label | |
| .table | |
| .img-responsive | |
| .img-rounded | |
| .img-thumbnail | |
| .img-circle | |
| .sr-only | |
| .lead |
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
| /*Code for implementing insertion and deletion in a trinary tree. | |
| * This file has 2 constructors, 3 other methods, and two classes | |
| * for the sake of clarity in communication. | |
| */ | |
| //Construct TrinaryNodes with keys and 3 children. | |
| class TrinaryNode { | |
| int key; | |
| TrinaryNode left; | |
| TrinaryNode middle; |