Skip to content

Instantly share code, notes, and snippets.

View apackin's full-sized avatar

Assaf Packin apackin

View GitHub Profile
@apackin
apackin / DataStructures.md
Last active January 13, 2016 18:44
Data Structures

##IV: Abstract Data Types & Data Structures: Storing data on memory{ Array Inserting elements in arrays are "expensive" Arrays have fixed sizes (need to find contiguous open space)

Linked list Every element also needs to store a reference to the next item in the list

ADTs vs DTs

@apackin
apackin / Methods.md
Last active January 13, 2016 14:54
Methods Descriptions

FUNCTIONS:

Bind (allows you to save the current value of a variable into your function for when it is called):

  var createFunctions = function(num){
  	var funcList = [];
  
  	for (var i = 0; i < num; i++) {
 funcList.push(function(x){return x;}.bind(this, i));