Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b9a41ba

Browse files
Merge pull request #39 from mdribera/fix-typo-array-pop-and-bst-images
fix(book): fix typo, array pop, and BST images
2 parents 5628a27 + ac98583 commit b9a41ba

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

‎book/content/part01/algorithms-analysis.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Algorithms (as you might know) are steps of how to do some tasks. When you cook,
3333
----
3434
import { punchDown, rollOut, applyToppings, Oven } from '../pizza-utils';
3535
36-
function makePizza(dough, toppins = ['cheese']) {
36+
function makePizza(dough, toppings = ['cheese']) {
3737
const oven = new Oven(450);
3838
const punchedDough = punchDown(dough);
3939
const rolledDough = rollOut(punchedDough);

‎book/content/part02/array.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Removing the last element is very straightforward:
234234
----
235235
const array = [2, 5, 1, 9, 111];
236236
array.pop(); // ↪️111
237-
// array: [2, 5, 1, 9, 111]
237+
// array: [2, 5, 1, 9]
238238
----
239239

240240
No element other element has been shifted, so it’s an _O(1)_ runtime.

‎book/images/image33.png

311 Bytes
Loading[フレーム]

‎book/images/image34.png

561 Bytes
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /