* feat: Add check number case
* style: Fix formatting
* fix: Remove number check part
* feat: Create isPalindromeIntegerNumber
* test: Add minus number case
* Add an algorithm to find length and area of an arc of a circle
* Updated to follow Javascript Standard Style
* Update CircularArc.js
* Update CircularArc.js
* Add tests
* Followed Javascript standard style
* feat: Add mobius function implementation
* test: Add tests for mobius function
* fix: Code style fixes
* fix: Code style fixes
* fix: Store prime factors in a variable & add throw error
* fix: Fix unit tests for zero and negative numbers
* fix: Minor code style fixes
* Make `PerfectCube` more correct and readable
* Add negative and Infinity tests
* Fixed comment formatting
* Realized BigInt support is unnecessary
The algorithm would be exactly the same, so there's no added educational value
* Update PerfectCube.js
* Remove space
* Update PerfectCube.js
Now `isInt` is replaced by `isFinite`, because `isInt` is a redundant check
* Update PerfectCube.js
Remove dot
* Parity between `PerfectSquare` and `PerfectCube`
* Update PerfectSquare.test.js
Fixed the old copy-paste error that said "cube" instead of "square". And added `Infinity` test
* 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
* Optimised the factorial function.
There was previously an unnecessary check for if the number was 0 or 1.
* Create WhileLoopFactorial.test.js
The test was not present previously.
* result *= num
* Update WhileLoopFactorial.test.js
* testFactorial function
* Space for formatting.
* should fix the formatting issues. I was having trouble with npx standard, so I just used the online verifier at https://standardjs.com/demo.html
* Auto-update DIRECTORY.md
* fix: some redundancy according to standard javascript library
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
* Add Math function for representing the decimal expansion of a given fraction (decimal or any base from 2 to 10).
* Auto-update DIRECTORY.md
* DecimalExpansion Jest tests.
* chore: trigger update
* Auto-update DIRECTORY.md
* Auto-update DIRECTORY.md
* chore: trigger checks
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Rak Laptudirm <rak@laptudirm.com>
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
* Fixed a typo where the commenting was wrong
* optimised code
* fixed a sentence structure
* changed the sentence structure
* updated pull request
* Update SetBit.js
* FindMinIterator
Do the `standard` thing.
Rename `FindMin` to `FindMinIterator`
Rename to `FindMinIterator`
Pull `FindMin` from `master`
* Remove these separator comments.
Co-authored-by: RuSaG0 <mirzoev-ruslan-2000@mail.ru>
* refactor: used Boolean function for conversion
* feat: added one more function and test cases
* test: refactor test case & fixed var names
* chore: fixed test placeholder
* Create ArithmeticGeometricMean.js
* Finally added the test script for AGM
* Better doc, and corrected some formatting
* Fixed syntax typos
* Added more tests and made FP comparison more "loose"
* Patched bugs
* Fixed-0 bug
* Again, tried to fix minus zero
* Finally fixed all bugs (probably)
* Fixed style (probably)
* Fixed style
* Fixed all style
The URL in the Wikipedia link had an extra "h" in the URI Scheme (the part that specifies the protocol, usually `https`). I removed the duplicate "h" and made it into a single "h", now the link works