7 Commits

Author SHA1 Message Date
61c9e8b372 fix: factorial function (#1093) 2022-09-07 15:00:35 +05:30
285d2b08da Move the (num > 0) if condition to the end 2021-01-22 12:44:52 +07:00
57e20c551c Fix Block must not be padded by blank lines. 2020-10-16 16:38:34 +07:00
301a8dd19a Fix Extra semicolon and Block must not be padded by blank lines. 2020-10-16 16:35:42 +07:00
e0883facdb Refactor Maths/Factorial for more minimal side effects. 2020-10-16 16:31:40 +07:00
e112434dee Add tests to Math (#423)
* Add prettier config

* test: add test to check for absolute function

* chore: es5 to es6

* test: add test to check mean function

* test: add test for sum of digit

* test: add test for factorial

* test: add test for fibonnaci

* test: add test for find HCF

* test: add test for lcm

* test: add gridget test

* test: add test for mean square error

* test: add test for modular binary exponentiation

* test: add tests for palindrome

* test: add test for pascals triangle

* test: add tests for polynomial

* test: add tests for prime check

* test: add tests for reverse polish notation

* test: add tests for sieve of eratosthenes

* test: add tests for pi estimation monte carlo method

* chore: move tests to test folder

* chore: fix standardjs errors
2020-10-12 01:17:49 +05:30
75f6888019 Javascript/Math: editing file name 2020-05-06 18:30:19 +05:30