forked from TheAlgorithms/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from TheAlgorithms:master #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jenningsloy318
merged 193 commits into
AlgorithmAndLeetCode:master
from
TheAlgorithms:master
Jun 6, 2022
Merged
[pull] master from TheAlgorithms:master #1
jenningsloy318
merged 193 commits into
AlgorithmAndLeetCode:master
from
TheAlgorithms:master
Jun 6, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* added Problem 25 * fixed alert * fixed alert * rewrote to improve runtime * Update Problem025.js * fixed typo * added test file for Project-Euler/Problem025.js * Update Project-Euler/test/Problem025.test.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Problem025.test.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* Add project-euler problem 12 * Fix raised alert in problem 12 * Fixed for loop in Problem012 * fix alerts in Problem012 * Update Problem012
* add Problem 23 * add Problem 23 test.js * Update Problem023.test.js
* fixed some spellings * Update Data-Structures/Linked-List/SinglyLinkList.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
…del. (#806) * Added Hex to Binary conversion * Add Binary to decimal test * Fix Style
* Added Hex to Binary conversion * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Fix errors * fix: typo Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
… points task (#809) * Added Hex to Binary conversion * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Update Conversions/HexToBinary.js Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com> * Fix errors * fix: typo * Added Manhattan Distance Algorithm Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* Added LucasSeries * Added more tests and renamed function * Changed RangeError to TypeError
* Added LucasSeries * Added more tests and renamed function * Changed RangeError to TypeError * Added Aliquot Sum and tests * Fix ALiquot tests, need to learn how to use Jest * Added some explanation for the Aliquot sum
* Added LucasSeries * Added more tests and renamed function * Changed RangeError to TypeError * Added Aliquot Sum and tests * Fix ALiquot tests, need to learn how to use Jest * Added some explanation for the Aliquot sum * Change file names of DecimalIsolate & IsOdd to Pascal case
* Create UnionFind.js * Create UnionFindTest.js * add UnionFind.js plus tests * implement PR comments * implement PR comment * fix codestyle Co-authored-by: Administrator <pi@pglp.noip.me>
The existing template uses * to apply the bold font weight. As we already have the ### to markdown the text as heading, its redundant to have the *s.
* Add MinHeap and test * Add description and reference link * Adjust formatting
#820) * add empty line to end of file * Move all test files to /test following convention
* Create first_relative_max_point_in_array.js go over randomly generated array and print first spike or maximum point index in it runs in O(log(n)) * rename file to match requested casing * add comments I prefer SOLID standards so that's why didn't add them at first but due to the repository requirements was needed to be added * remove template unrelated comments * Update equals check to match JavaScript standards * create file skafolding and adjust filename to reflect main function * using newer node version * add tests * add last line as empty line * style changes * move algorithm tests to test folder * revert to old package lock file * chore: add ending line feed Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* Create find_relative_maximum_point_count.js print number of relative maximum points in array runs in O(n) * rename file to match requested casing * add inline comments and greater documentation * fix wrong reference to algorithm explanation * remove live code and fix function misnaming * add multiple cases tests * add last line as empty line * git pull * style changes * move tests to test folder * chore: fix spelling * fix package-lock * revert to old lock file * chore: add line feed Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* tests: change extention of helper file * chore: revert previous change * chore: ignore dirs with name "test" * docs: update directory styling Removed headings from `DIRECTORY.md` generation. * refactor: make code more idiomatic * docs: format directories to be bold * chore: change char conting method * fix: add 1 to ident count
Co-authored-by: Antonia Strack <antonia.strack@thm.mni.de>
* chore: update directory workflow Workflow now only runs on `pull_request` to prevent pushing on the master branch. * chore: update commit mechanism * chore: remove rundundant script * Update UpdateDirectory.yml * Updated Documentation in README.md * Update UpdateDirectory.yml * fix: replace wrong variable * Updated Documentation in README.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* feat: improved memoize function used Map instead of object & used the JSON.stringfy method for generate a valid string as a key * docs: modified documentation * style: format with standard * docs: modified stringify doc * refactor: remove two repetition implementation * feat: added validation, test codes * chore: remove useless words * feat: added types for jest * chore: added link box * feat: added new validation test casses & methods * style: formated with standard * feat: added parse method & test cases * docs: added js docs * chore: added default import export * feat: imporved algorithm via replace method * test: added two test cases * feat: added jest type for suggestions * feat: added `reduceRight` & `trim` method * chore: added helper variable * feat: added new rotation option * Revert "chore: added helper variable" This reverts commit 489544d. * remove: yarn lock * chore: fix grammer * feat: used replace method & added test case * feat: remove revert * chore: added new line * feat: added filter for alphabets only * resolve: added empty validation improved ignore pattern * chore: reverted to for of loop
* feat: a better README * chore: update repositories link * chore: fix broken links * chore: use gfm `<hr>` syntax Replaced <hr> with ---, which is GitHub Flavoured Markdown syntax. * chore: align everything to be centered * feat: use same style for all badges * chore: use shields.io badge instead of github * chore: reorder badges and add comments * chore: edit and format body * chore: add redirect links to all images * typo: JavasScript -> JavaScript
* feat: improved memoize function used Map instead of object & used the JSON.stringfy method for generate a valid string as a key * docs: modified documentation * style: format with standard * docs: modified stringify doc * refactor: remove two repetition implementation * feat: added validation, test codes * chore: remove useless words * feat: added types for jest * chore: added link box * feat: added new validation test casses & methods * style: formated with standard * feat: added parse method & test cases * docs: added js docs * chore: added default import export * feat: imporved algorithm via replace method * test: added two test cases * feat: added jest type for suggestions * feat: added `reduceRight` & `trim` method * chore: added helper variable * feat: added new rotation option * Revert "chore: added helper variable" This reverts commit 489544d. * remove: yarn lock * chore: fix grammer * feat: used replace method & added test case * feat: remove revert * chore: added new line * feat: updated the Queue array to linkedlist DS * chore: fixed grammer * resolve: removed capacity related codes, & updated test cases * feat: added length dicrease code on dequeue
* feat: improved memoize function used Map instead of object & used the JSON.stringfy method for generate a valid string as a key * docs: modified documentation * style: format with standard * docs: modified stringify doc * refactor: remove two repetition implementation * feat: added validation, test codes * chore: remove useless words * feat: added types for jest * chore: added link box * feat: added new validation test casses & methods * style: formated with standard * feat: added parse method & test cases * docs: added js docs * chore: added default import export * feat: imporved algorithm via replace method * test: added two test cases * feat: added jest type for suggestions * feat: added `reduceRight` & `trim` method * chore: added helper variable * feat: added new rotation option * Revert "chore: added helper variable" This reverts commit 489544d. * remove: yarn lock * chore: fix grammer * feat: used replace method & added test case * feat: remove revert * chore: added new line * feat: optimized algo n to n / 2 & replaced test cases * chore: update node version * chore: set node version to lts * chore: updated the node version & added engines prop * resolve: removed while loop * chore: added right shift ops comment * chore: update comment * chore: removed abs Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* add yt video association algorithm * Implement FindMaxRecursion in JS * Delete file in other PR * Fix requested changes * Add requested changes * Delete YoutubeVideoAssociation.test.js * Deduplicate comment * Remove trailing spaces Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
…1020) * Update test case for bubbleSort * re-update test case for bubble sort * re-update test case for bubbleSort
* feat: Add pronic number implementation * Add test to Math * Minor fixes * Minor style fixes * refactor: Store square root in a variable * Minor refactoring * fix: Change pronic number check logic Reduced time complexity from O(sqrt(n)) to O(1) * Minor style fixes * fix: Update pronic number check boolean equation * refactor: Change pronic number check condition * refactor: Add tests to Math * Minor style fixes * refactor: Change unit test logic
* Create CollatzConjecture.js * Create CollatzConjecture.test.js * Update CollatzConjecture.js * Update CollatzConjecture.test.js * Rename CollatzConjecture.js to CollatzSequence.js * Update and rename CollatzConjecture.test.js to CollatzSequence.test.js * Update CollatzSequence.js * Update CollatzSequence.test.js * Update CollatzSequence.test.js * Fix styling errors * Add suggestion Co-authored-by: Rak Laptudirm <rak@laptudirm.com> * Update CollatzSequence.js * Update CollatzSequence.js * Update comments to match the Collatz Sequence * Update CollatzSequence.test.js Co-authored-by: Rak Laptudirm <rak@laptudirm.com>
* Create TwinPrime.js * Update TwinPrime.js * Create TwinPrime.test.js * Update TwinPrime.js * Update TwinPrime.js * Add suggestions * Update TwinPrime.test.js * Update TwinPrime.js * Styling
* Add test case to HexToRGB algorithm * Add testcase to AlternativeStringArrange Algorithm * deleting coppy file
* Add test case to CheckPascalCase Algorithm * Add test case to palindromeRearranging Algorithm * no need
* FindSecondLargestElement: Support negative numbers * Updated Documentation in README.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )