Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: RainyNight9/javascript-datastructures-algorithms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: loiane/javascript-datastructures-algorithms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 20 commits
  • 6 files changed
  • 6 contributors

Commits on Aug 2, 2022

  1. Found Typographical Error in Documentation

    Typos Found directoty, depencies, nagivate. Found Literal errors were updated.
    sojinsamuel authored Aug 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f1ff66f View commit details
  2. Merge pull request loiane#206 from SojinSamuel/patch-1

    Found Typographical Error in Documentation
    loiane authored Aug 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    73139fe View commit details

Commits on Aug 3, 2022

  1. Copy the full SHA
    a9ba9d8 View commit details

Commits on Aug 20, 2022

  1. Copy the full SHA
    0da564f View commit details

Commits on Jan 9, 2024

  1. Bump follow-redirects from 1.13.0 to 1.15.4

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.0 to 1.15.4.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.13.0...v1.15.4)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    60e5269 View commit details

Commits on Feb 27, 2024

  1. Merge pull request loiane#222 from loiane/dependabot/npm_and_yarn/fol…

    …low-redirects-1.15.4
    
    Bump follow-redirects from 1.13.0 to 1.15.4
    loiane authored Feb 27, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b1eb1c0 View commit details
  2. Bump browserify-sign from 4.2.1 to 4.2.2

    Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
    - [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
    - [Commits](browserify/browserify-sign@v4.2.1...v4.2.2)
    
    ---
    updated-dependencies:
    - dependency-name: browserify-sign
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 27, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    cc1ce5d View commit details
  3. Bump @babel/traverse from 7.12.1 to 7.23.9

    Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.12.1 to 7.23.9.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.23.9/packages/babel-traverse)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/traverse"
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 27, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0842127 View commit details
  4. Bump async from 2.6.3 to 2.6.4

    Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
    - [Release notes](https://github.com/caolan/async/releases)
    - [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
    - [Commits](caolan/async@v2.6.3...v2.6.4)
    
    ---
    updated-dependencies:
    - dependency-name: async
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Feb 27, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    dcf995f View commit details

Commits on Mar 12, 2024

  1. Merge pull request loiane#207 from Yamiqu/main

    fix: hash-table-linear-probing get function
    loiane authored Mar 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0d56427 View commit details
  2. Merge pull request loiane#210 from JackZong/fix/remove_useless_argument

    fix(example): remove useless argument
    loiane authored Mar 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9fb02d3 View commit details
  3. Merge pull request loiane#223 from loiane/dependabot/npm_and_yarn/bro…

    …wserify-sign-4.2.2
    
    Bump browserify-sign from 4.2.1 to 4.2.2
    loiane authored Mar 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d31faae View commit details
  4. Merge pull request loiane#224 from loiane/dependabot/npm_and_yarn/bab…

    …el/traverse-7.23.9
    
    Bump @babel/traverse from 7.12.1 to 7.23.9
    loiane authored Mar 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a57317d View commit details
  5. Merge pull request loiane#225 from loiane/dependabot/npm_and_yarn/asy…

    …nc-2.6.4
    
    Bump async from 2.6.3 to 2.6.4
    loiane authored Mar 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    84c141f View commit details

Commits on Mar 16, 2024

  1. Bump follow-redirects from 1.15.4 to 1.15.6

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Mar 16, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fa69786 View commit details

Commits on Mar 23, 2024

  1. Merge pull request loiane#226 from loiane/dependabot/npm_and_yarn/fol…

    …low-redirects-1.15.6
    
    Bump follow-redirects from 1.15.4 to 1.15.6
    loiane authored Mar 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    dd48e16 View commit details

Commits on Mar 24, 2024

  1. Merge pull request loiane#227 from loiane/third-edition

    Third edition
    loiane authored Mar 24, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e00c298 View commit details

Commits on Oct 27, 2024

  1. Create build.yml

    loiane authored Oct 27, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ff6e72c View commit details

Commits on Nov 21, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9f4b321 View commit details

Commits on Nov 22, 2024

  1. Merge pull request loiane#232 from kudosscience/patch-1

    Fix broken 3rd edition Packt link in README.md
    loiane authored Nov 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3ddc965 View commit details
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: [ "fourth-edition" ]
pull_request:
branches: [ "fourth-edition" ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ Book link - second edition:
- [Brazilian Portuguese version](https://novatec.com.br/livros/estruturas-de-dados-algoritmos-em-javascript/)

Book link - third edition:
- [Packt](https://www.packtpub.com/web-development/learning-javascript-data-structures-and-algorithms-third-edition)
- [Packt](https://www.packtpub.com/en-us/product/learning-javascript-data-structures-and-algorithms-9781788624947)
- [Amazon](http://a.co/cbMlYmJ)
- [Chinese version](http://www.ituring.com.cn/book/2653)
- [Brazilian Portuguese version](https://novatec.com.br/livros/estruturas-de-dados-algoritmos-em-javascript-2ed/)
2 changes: 1 addition & 1 deletion examples/chapter09/04-Fibonacci.js
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ function fibonacciMemoization(n) {
const memo = [0, 1];
const fibonacci = (n) => {
if (memo[n] != null) return memo[n];
return memo[n] = fibonacci(n - 1, memo) + fibonacci(n - 2, memo);
return memo[n] = fibonacci(n - 1) + fibonacci(n - 2);
};
return fibonacci(n);
}
Loading