Skip to content

Instantly share code, notes, and snippets.

View pateldisha's full-sized avatar

Disha Patel pateldisha

  • Bangalore, India
View GitHub Profile
@pateldisha
pateldisha / sparks.py
Last active August 29, 2015 14:17 — forked from stefanv/sparks.py
#!/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:
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
/*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;