Skip to content

Instantly share code, notes, and snippets.

View ZaynahGiti's full-sized avatar

Zeina Sadaldeen ZaynahGiti

View GitHub Profile
@ZaynahGiti
ZaynahGiti / Binary Search Tree.js
Created November 6, 2016 04:29
Binary Search Tree created by ZaynahGiti - https://repl.it/EPbx/4
function BST(value) {
this.value = value;
this.right = null;
this.left = null;
}
BST.prototype.insert = function(value) {
if (value <= this.value) {
if (!this.left) this.left = new BST(value);
else this.left.insert(value);
@ZaynahGiti
ZaynahGiti / LinkedList.js
Last active November 6, 2016 03:52
LinkedList created by ZaynahGiti - https://repl.it/EPbx/1
function LinkedList() {
this.head = null;
this.tail = null;
}
function Node(value, next, prev) {
this.value = value;
this.next = next;
this.prev = prev;
}
@tonkec
tonkec / Famous_female_coders.md
Last active November 14, 2018 10:29
Famous female coders