Skip to content

Instantly share code, notes, and snippets.

View LearningNerd's full-sized avatar

Liz Krane LearningNerd

View GitHub Profile
@LearningNerd
LearningNerd / Big_O_Notation.md
Created January 15, 2018 20:56 — forked from ThuyNT13/Big_O_Notation.md
Big O Notation

Big O notation is a way for us to describe how long it takes for an algorithm to run. We can use Big O notation to compare how efficient different approaches to solving a problem are. In big O notation we describe the runtime of an algorithm in terms of how quickly the runtime grows as the input to the algorithm gets very, very large. Let’s break down the definition a bit:

  • How quickly the runtime grows:

    • We can’t give an exact amount of time that an algorithm will run for because it depends on too many things. Is it running on a supercomputer, a really old desktop, or a calculator? Which language is it written in? Is the computer running anything else at the same time? All of these can affect the runtime, so we remove these variables by focusing on how the runtime grows.
  • Based on the input:

  • Since we are removing runtime from the description we need another way to express the speed - we can’t use seconds anymore. Instead we’ll use the size of the input to describe it. We will

@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:19 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:17 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:15 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:13 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:11 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:09 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:07 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:05 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]
@LearningNerd
LearningNerd / mob-coding-challenge.js
Created July 13, 2017 03:03 — forked from eddyruiz/mob-coding-challenge.js
A saved mob programming session with Learn Teach Code!
// CHALLENGE: https://www.freecodecamp.org/challenges/seek-and-destroy
/*
GOAL: Remove all elements from the initial array that
are of the same value as these arguments.
*/
// EXAMPLE TEST:
// destroyer([1, 2, 3, 1, 2, 3], 2, 3) should return [1, 1]