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: serdimoa/javascript-algorithms
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: trekhleb/javascript-algorithms
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Jul 3, 2020

  1. Add BACKERS.md.

    trekhleb committed Jul 3, 2020
    Copy the full SHA
    833f59b View commit details

Commits on Jul 6, 2020

  1. Create FUNDING.yml

    trekhleb authored Jul 6, 2020
    Copy the full SHA
    503a76d View commit details

Commits on Jul 8, 2020

  1. Update FUNDING.yml

    trekhleb authored Jul 8, 2020
    Copy the full SHA
    af09d4b View commit details
  2. Copy the full SHA
    247bc77 View commit details
  3. Copy the full SHA
    a35b776 View commit details
  4. Copy the full SHA
    87e74dd View commit details
  5. Copy the full SHA
    1294afc View commit details
  6. Copy the full SHA
    fd7cf58 View commit details
  7. Copy the full SHA
    7036729 View commit details

Commits on Jul 15, 2020

  1. Link error (trekhleb#511)

    imyangyong authored Jul 15, 2020
    Copy the full SHA
    aa10ffe View commit details
  2. Copy the full SHA
    b3b8d4d View commit details
  3. Update README.pt-BR.md (trekhleb#490)

    Traduzido Trie > Árvore de prefixos
    alrtas authored Jul 15, 2020
    Copy the full SHA
    d43f9d8 View commit details
  4. Copy the full SHA
    3bf94e5 View commit details
  5. Adjusting README.

    trekhleb committed Jul 15, 2020
    Copy the full SHA
    8d32c9f View commit details
  6. Copy the full SHA
    0fcea27 View commit details

Commits on Jul 26, 2020

  1. Upgrade dependencies.

    trekhleb committed Jul 26, 2020
    Copy the full SHA
    d227a33 View commit details
  2. Using Node v12 for Travis.

    trekhleb committed Jul 26, 2020
    Copy the full SHA
    0998483 View commit details
  3. Adding OS to Travis config.

    trekhleb committed Jul 26, 2020
    Copy the full SHA
    4d8baf8 View commit details
  4. Copy the full SHA
    63f5a27 View commit details
  5. Adding inequality conditions (trekhleb#489)

    A quick fix to add inequality conditions wherever needed.
    
    Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
    surajhell88 and trekhleb authored Jul 26, 2020
    Copy the full SHA
    194f213 View commit details
  6. Copy the full SHA
    2ffb7b7 View commit details
  7. Fix ESLint issues.

    trekhleb committed Jul 26, 2020
    Copy the full SHA
    f42433e View commit details

Commits on Aug 8, 2020

  1. Copy the full SHA
    e54a3df View commit details
  2. Caeser cipher (trekhleb#517)

    * added ceaserCipher algorithm
    
    * added ceaserCipher algorithm
    
    * fixed a typo
    Gifted-s authored Aug 8, 2020
    Copy the full SHA
    bd7475e View commit details
  3. Copy the full SHA
    0024241 View commit details

Commits on Aug 9, 2020

  1. Add french translation for some chapters (trekhleb#520)

    * Create README.fr-FR.md
    
    * Translate to french "Priority Queue" module
    
    * Add english lang redirection
    
    * Update README.fr-FR.md
    
    * Update README.fr-FR.md
    
    * Add French lang version redir
    
    * Create README.fr-FR.md
    
    * Added french translation for Queue
    
    * Added French lang redir
    
    * Update README.md
    
    * Create README.fr-FR.md
    
    * Add french translation
    
    * Index french translation
    
    * Create README.fr-FR.md
    
    * Add french translation
    
    * Index french translation
    
    * Fix translation
    
    * Create README.fr-FR.md
    
    * Add french translation
    
    * Index french translation
    
    * Add wikipedia french reference
    
    * Add french wikipedia reference
    gsbm authored Aug 9, 2020
    Copy the full SHA
    95641c8 View commit details
  2. Copy the full SHA
    2444b97 View commit details
  3. Minor fixes.

    trekhleb committed Aug 9, 2020
    Copy the full SHA
    929b210 View commit details

Commits on Aug 21, 2020

  1. Update README.ru-RU.md (trekhleb#530)

    There is an error in deletion complexity
    LostSenSS authored Aug 21, 2020
    Copy the full SHA
    5a3806f View commit details
  2. Fix infinity loop with negative numbers (trekhleb#502)

    * Update countSetBits.js
    
    * Update countSetBits.test.js
    onicat authored Aug 21, 2020
    Copy the full SHA
    be185ac View commit details
  3. Copy the full SHA
    c093fe4 View commit details
  4. Fix and Update README.zh-CN.md (trekhleb#469)

    * Update README.zh-CN.md
    
    * Update Translation
    aeilot authored Aug 21, 2020
    Copy the full SHA
    6af6323 View commit details
  5. Copy the full SHA
    07bc4a4 View commit details

Commits on Oct 5, 2020

  1. Chore(math-translation-FR-fr): a pack of translations for the math se…

    …ction (trekhleb#558)
    
    * chore(factorial): translation fr-FR
    
    * feat(math-translation-fr-FR): fast powering
    
    * feat(math-translation-fr-FR): fibonacci numbers
    
    * chore(math-translation-fr-FR): bits
    
    * chore(math-translation-fr-FR): complex number
    
    * chore(math-translation-fr-FR): euclidean algorithm
    
    * chore(math-translation-fr-FR): fibonacci number
    
    * chore(math-translation-fr-FR): fourier transform
    
    * chore(math-translation-fr-FR): fourier transform WIP
    
    * chore(math-translation-fr-FR): fourier transform done
    
    * chore(math-translation-fr-FR): fourier transform in menu
    ltruchot authored Oct 5, 2020
    Copy the full SHA
    d6b8dd3 View commit details
  2. Fix markup.

    trekhleb committed Oct 5, 2020
    Copy the full SHA
    477f30b View commit details

Commits on Nov 2, 2020

  1. Create README.tr-TR.md (trekhleb#574)

    Added Turkish language of README.md
    AykutSarac authored Nov 2, 2020
    Copy the full SHA
    826055e View commit details
  2. Copy the full SHA
    ed52a80 View commit details

Commits on Nov 28, 2020

  1. Copy the full SHA
    83978e9 View commit details
  2. Copy the full SHA
    2c74ced View commit details

Commits on Dec 4, 2020

  1. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    83251df View commit details
  2. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    fc1c2d8 View commit details
  3. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    63eebef View commit details
  4. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    922b3ae View commit details
  5. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    7155cfe View commit details
  6. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    e5baba4 View commit details
  7. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    c15e2ca View commit details
  8. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    47b4b68 View commit details
  9. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    f1de657 View commit details
  10. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    2c695b5 View commit details
  11. Update Backers.

    trekhleb committed Dec 4, 2020
    Copy the full SHA
    c919122 View commit details
Showing 351 changed files with 29,434 additions and 6,806 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# @see: https://editorconfig.org/
root = true

[*]
@@ -6,3 +7,5 @@ insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
quote_type = single
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -11,5 +11,11 @@
"class-methods-use-this": "off",
"arrow-body-style": "off",
"no-loop-func": "off"
},
"ignorePatterns": ["*.md", "*.png", "*.jpeg", "*.jpg"],
"settings": {
"react": {
"version": "18.2.0"
}
}
}
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @see: https://docs.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository
github: trekhleb
patreon: trekhleb
35 changes: 35 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm i

- name: Run linting
run: npm run lint

- name: Run tests
run: npm run coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint
# npm run test
5 changes: 0 additions & 5 deletions .huskyrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.15.0
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

48 changes: 48 additions & 0 deletions BACKERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Project Backers

> You may support this project via ❤️️ [GitHub](https://github.com/sponsors/trekhleb) or ❤️️ [Patreon](https://www.patreon.com/trekhleb).
## `O(2ⁿ)` Backers

`null`

## `O(n²)` Backers

`null`

## `O(n×log(n))` Backers

`null`

<!--
<table>
<tr>
<td align="center">
<a href="[PROFILE_URL]">
<img
src="[PROFILE_IMG_SRC]"
width="50"
height="50"
/>
</a>
<br />
<a href="[PROFILE_URL]">[PROFILE_NAME]</a>
</td>
</tr>
</table>
-->

<!--
<ul>
<li>
<a href="[PROFILE_URL]">
<img
src="[PROFILE_IMG_SRC]"
width="30"
height="30"
/></a>
&thinsp;
<a href="[PROFILE_URL]">[PROFILE_NAME]</a>
</li>
</ul>
-->
Loading