This file contains 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
"use strict"; | |
/*jshint -W055 */ | |
/*jshint -W098 */ | |
/* | |
var BST = function BST(){ | |
var root; | |
function constructor(){ | |
this.root = {}; |
This file contains 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 LinkedList(){ | |
var head = {}; | |
function constructor() { } | |
constructor.prototype.push = function(element) { | |
if(this.head === null){//if the list is empty | |
this.head.value = element; //set the heads value | |
this.head.next = null; |
This file contains 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
var list = | |
{ head: 1, | |
tail: { head: 2, | |
tail: { head: 3, | |
tail: { head: 4, | |
tail: { head: 5, | |
tail: null | |
} | |
} | |
} |
This file contains 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
sass: { | |
dist: { | |
files: {'build/css/styles.css': 'assets/scss/styles.scss'} | |
}, | |
dev: { | |
options: { | |
includePaths: { | |
options: { | |
'includePaths': ['public/scss/'], | |
} |
This file contains 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
exports.Card = function(suit, rank) { | |
function contructor() {}; | |
constructor.prototype.getRank = function() { return rank; }; | |
constructor.prototype.getSuit = function() { return suit; }; | |
return new constructor(); | |
}; |