Commit ccd8e8b
Fetching last changes (#1)
* added DecimalToHex
* added luhn's checksum algorithm
* deleted checksums
* Update keyFinder.js
modified used the suitable identifier for the variables
* Update keyFinder.js
1. modified the identifiers and used the suitable identifiers for the variables
2. leave the loop when a key is match and found to increase the speed of searching in this stage of development
3. return the key number if founded, return 0 if found nothing
* Update keyFinder.js
a sub-function is used to assist the keyfinder to find the key
* Update keyFinder.js
Finally, there are several changes in the function keyFinder(str) that make it works well
* Update keyFinder.js
Add some key words to the wordbank to increase the chance of the matching.
* fixed and added test cases
* fixed alert
* Add wiggle sort
* adding Graph data structure
* Added SHA-1 and SHA-256 hashing algorithms (TheAlgorithms#83)
* Added SHA-1 and SHA-256 hashing algorithms
* Fixed typos in comments
* Removed redundant unsigned integer casting
* Added Jump Search to readme.md
* Added JumpSearch algorithm
* Update jumpSearch.js
* Added Semicolon to Avoid Auto Semicolon Insertion
This fixes a [recommendation on lgtm](https://lgtm.com/projects/g/TheAlgorithms/Javascript/snapshot/9fe2ca0492e0813c5e5486498c6b53a00c4a61e3/files/Sorts/bucketSort.js?sort=name&dir=ASC&mode=heatmap)
* Fixed Whitespace, Operators, and Quotes to Comply with JSLint
I modified the whitespace in the files and changed single quotes to double quotes.
I also changed some `==` and `!=` operators to `===` and `!==` to comply with JSLint.
* Create find_lcm.js
- Created find_lcm.js
- Created maths folder
* Create average_mean.js
* Create factorial.js
This program calculates and displays the factorial for a user-input number.
* Create abs.js
This script calculates absolute value.
* Made "use strict" Global
* Made "use strict" Global & Made JSLint Happy
* Kadane Algo is added
* Issue fixed
* GitHub Action to test Javascript
* Update nodejs.yml
* cd linear-algebra-javascript
* Create update_directory_md.yml
* updating DIRECTORY.md
* update_directory_md.yml: Remove GH Actions workaround
* Graph Theory
* Delete Graphs
* Graph
* Dijkstra Smallest Path
* DijkstraSmallestPath
after fixing some errors.
* Topological Sort
directed graphs
* correcting name of file
* updating DIRECTORY.md
* doublylinkedlist
* add-doublylinkedlist
* add-doublylinkedlist
* change in Directory.md
* updating DIRECTORY.md
* update (#1)
* Graph Theory
* Delete Graphs
* Graph
* Dijkstra Smallest Path
* DijkstraSmallestPath
after fixing some errors.
* Topological Sort
directed graphs
* correcting name of file
* updating DIRECTORY.md
* doublylinkedlist
* add-doublylinkedlist
* add-doublylinkedlist
* change in Directory.md
* updating DIRECTORY.md
Co-authored-by: Nur69 <60115902+Nur69@users.noreply.github.com>
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: hmizz <hamza.chabchoub@medtech.tn>
* Contributing guidelines
* npx standard --fix
* Update CONTRIBUTING.md
* Update README.md
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
* Add standard to our testing
Run in allow failures mode until the non-compliant files are fixed.
* npx standard || true
* Update README.md
* Fixing non compliant files (Ciphers, Conversions and Data Structures)
* Update nodejs.yml
* Data Structures/Graph
* sorts/
* fix broken link
* search/
* search/ (TheAlgorithms#143)
* factorial.js: Standardjs fixes
Related to TheAlgorithms#139
* /* global alert, prompt */
* find_lcm.js: Standardjs fixes
* abs.js: abs_val() --> absVal() for standardjs (TheAlgorithms#144)
* find_lcm.js: Standardjs fixes (TheAlgorithms#146)
* Update factorial.js
* SHA256.js: Standardjs fixes
* factorial.js: /* global prompt */
* Update nodejs.yml
* DijkstraSmallestPath.js: Standardjs fixes (TheAlgorithms#147)
* Fixed typo in CONTRIBUTING.md file (TheAlgorithms#148)
* Fixed typo in CONTRIBUTING.md file
* Update CONTRIBUTING.md
Co-authored-by: vinayak <itssvinayak@gmail.com>
* math/
* sort/
* Add Pascal's triangle. (TheAlgorithms#149)
* Add Pascal's triangle.
* Update pascalTriangle.js
* Update pascalTriangle.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Javascript/linear-algebra-javascript
* Update nodejs.yml
* Update nodejs.yml
* Update nodejs.yml
* Trailing space ;-)
* Update README.md
* adding an implementation of a queue using 2 stacks (TheAlgorithms#137)
* adding an implementation of a queue using 2 stacks
* Update QueueUsing2Stacks.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Create palindrome algorithm (TheAlgorithms#134)
* Create palindrome algorithm
* Update Palindrome.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Create pull_request_template.md (TheAlgorithms#153)
* Create pull_request_template.md
* Update pull_request_template.md
* Update pull_request_template.md
* Update pull_request_template.md
* Update pull_request_template.md
* Update README.md
* Update CONTRIBUTING.md
* added hcf finding algorithm (TheAlgorithms#104)
* added hcf finding algorith
* Update and rename find_hcf.js to FindHcf.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Create Fibonacci.js (TheAlgorithms#133)
* Create Fibonacci.js
* Update Fibonacci.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Javascript/Math: editing file name
* updating DIRECTORY.md
* Update nodejs.yml
* Update README.md
* editing file names
* updating DIRECTORY.md
* Quick Select Search (TheAlgorithms#131)
* HeapSort algorithm
* Create QuickSelect.js
* Algorithm to reverse a string.
* Update ReverseString.js
* Update Heapsort.js
* Update QuickSelect.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Update README.md
* Max heap implementation (TheAlgorithms#157)
* Added MaxHeap implementation
* Added MaxHeap implementation
* Added MaxHeap implementation
* Added MaxHeap implementation
* Delete package-lock.json
* Delete .gitignore
* updating DIRECTORY.md
* Renaming files according to naming convention (TheAlgorithms#158)
* updating DIRECTORY.md
* Fibonacci without recursion added (TheAlgorithms#159)
* changes made
* Update Fibonacci.js
* fib
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* format files
* updating DIRECTORY.md
* Add good_filepaths function in workflow script
* updating DIRECTORY.md
* Add md_prefix and print_path functions
* Add reverse words (TheAlgorithms#162)
* add reverse words
* Update ReverseWords.js
* Update ReverseWords.js
Co-authored-by: vinayak <itssvinayak@gmail.com>
* updating DIRECTORY.md
* Add build_directory_md
* GitHub Action nodejs.yml upgrade to Node.js 14 (TheAlgorithms#165)
* JavaScript, not Javascript (TheAlgorithms#166)
* Rename script.js to UpdateDirectory.js
* updating DIRECTORY.md
* run: node UpdateDirectory.js
* run: node .github/workflows/UpdateDirectory.js
* updating DIRECTORY.md
* BogoSort.js: Simplify Array.isSorted() and add doctests
As discussed at TheAlgorithms#164 (comment)
Also related to add doctests as discussed in TheAlgorithms#142
* node -e "doctest('Sorts/BogoSort.js', {})"
* doctest --module Sorts Sorts/BogoSort.js
* Update nodejs.yml
* Update nodejs.yml
* npx doctest Sorts/BogoSort.js || true
* node_modules/doctest Sorts/BogoSort.js || true
* npx doctest Sorts/BogoSort.js
* updating DIRECTORY.md
* Ensure that build fail on bad test
* updating DIRECTORY.md
* Ready for review
* Add doctest to BucketSort.js
* updating DIRECTORY.md
* Update nodejs.yml
* updating DIRECTORY.md
* npx doctest Sorts/BogoSort.js Sorts/BucketSort.js
* updating DIRECTORY.md
* updating DIRECTORY.md
* Add Graph BFS algorithm (TheAlgorithms#169)
* Add Graph BFS algorithm
* updating DIRECTORY.md
* Fix failing tests
* updating DIRECTORY.md
* Fix further failing tests
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* updating DIRECTORY.md
* Re-orgainze files and folders in the repository (TheAlgorithms#172)
* Re-orgainze files and folders in the repository
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Alex Brown <opti.jawsome@gmail.com>
Co-authored-by: Wan Cheuk Lun <winsonrich@gmail.com>
Co-authored-by: Mohit Sharma <msvbs98@gmail.com>
Co-authored-by: Akarsh <akarsh.satija@gmail.com>
Co-authored-by: naor <naor2205@gmail.com>
Co-authored-by: Anup Kumar Panwar <1anuppanwar@gmail.com>
Co-authored-by: Ravi Patel <ravi.patel1245@gmail.com>
Co-authored-by: mavroian <mavflorin@gmail.com>
Co-authored-by: Libin Yang <szuyanglb@outlook.com>
Co-authored-by: PatOnTheBack <51241310+PatOnTheBack@users.noreply.github.com>
Co-authored-by: lakshyabatman <lakshya.khera@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Nur69 <60115902+Nur69@users.noreply.github.com>
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
Co-authored-by: hmizz <hamza.chabchoub@medtech.tn>
Co-authored-by: vinayak <itssvinayak@gmail.com>
Co-authored-by: Juliano Nunes <julianomarquesnunes@gmail.com>
Co-authored-by: Muhammad Awais <aawais.nu@gmail.com>
Co-authored-by: Nour B <56294154+nourrrrrrrr@users.noreply.github.com>
Co-authored-by: hmizz <60817898+hmizz@users.noreply.github.com>
Co-authored-by: Novojit Saha <55886194+redfly1@users.noreply.github.com>
Co-authored-by: Samarth Jain <53353139+samjain2907@users.noreply.github.com>
Co-authored-by: Satzyakiz <40039258+Satzyakiz@users.noreply.github.com>
Co-authored-by: Sahil Bansal <shlbnsl843@gmail.com>
Co-authored-by: Abhi Ramani <abhiramani3@gmail.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>1 parent 9cabd46 commit ccd8e8b
95 files changed
Lines changed: 4211 additions & 2593 deletions
File tree
- .github
- workflows
- Algorithms
- dynamic_programming
- Ciphers
- Conversions
- Data Structures
- Heap
- Linked List
- Queue
- Stack
- Data-Structures
- Array
- Graph
- Heap
- Linked-List
- Queue
- Stack
- Tree
- Dynamic-Programming
- Hashes
- Linear-Algebra
- src
- test
- Maths
- Recursive
- Search
- Sorts
- String
- linear-algebra-javascript
- src
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
0 commit comments