Skip to content

Commit

Permalink
fix(book): fix typo, array pop, and BST images
Browse files Browse the repository at this point in the history
Typos in book content: makePizza parameter, array.pop() mutation, and BST node values

Fixes: #38
  • Loading branch information
mdribera committed Feb 11, 2020
1 parent 5628a27 commit ac98583
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/content/part01/algorithms-analysis.asc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Algorithms (as you might know) are steps of how to do some tasks. When you cook,
----
import { punchDown, rollOut, applyToppings, Oven } from '../pizza-utils';
function makePizza(dough, toppins = ['cheese']) {
function makePizza(dough, toppings = ['cheese']) {
const oven = new Oven(450);
const punchedDough = punchDown(dough);
const rolledDough = rollOut(punchedDough);
Expand Down
2 changes: 1 addition & 1 deletion book/content/part02/array.asc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Removing the last element is very straightforward:
----
const array = [2, 5, 1, 9, 111];
array.pop(); // ↪️111
// array: [2, 5, 1, 9, 111]
// array: [2, 5, 1, 9]
----

No element other element has been shifted, so it’s an _O(1)_ runtime.
Expand Down
Binary file modified book/images/image33.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified book/images/image34.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ac98583

Please sign in to comment.