Commit Graph
157 Commits
Author SHA1 Message Date
saurabhbazzad 0b544c66c5 Added Sleep Sort 2019-10-21 23:13:16 +05:30
Anup Kumar Panwar dfacd257e1 Merge pull request #93 from lakshyabatman/master
Kadane Algo is added
2019-09-14 23:23:15 +05:30
lakshyabatman 3d2db0d74c Issue fixed 2019-09-09 00:18:29 +05:30
lakshyabatman 02050b7f8e Kadane Algo is added 2019-09-09 00:10:04 +05:30
Yang Libin 71bbd07836 Merge pull request #88 from PatOnTheBack/master
Improved JSLint Compliance and Created Math Algorithms
2019-08-07 18:33:05 +08:00
PatOnTheBack 66600374be Made "use strict" Global & Made JSLint Happy 2019-08-05 15:34:17 -04:00
PatOnTheBack ef7b5bd119 Made "use strict" Global 2019-08-05 15:29:57 -04:00
PatOnTheBack 376a67cafb Create abs.js
This script calculates absolute value.
2019-07-02 09:35:06 -04:00
PatOnTheBack 759e81df1f Create factorial.js
This program calculates and displays the factorial for a user-input number.
2019-07-02 09:19:44 -04:00
PatOnTheBack 61ea916bd9 Create average_mean.js 2019-07-01 15:07:01 -04:00
PatOnTheBack 6960272374 Create find_lcm.js
- Created find_lcm.js
- Created maths folder
2019-07-01 14:35:50 -04:00
PatOnTheBack f37cac8508 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.
2019-06-27 10:41:44 -04:00
Mohit Sharma f4e6b66a0b Merge pull request #87 from PatOnTheBack/patch-1
Added Semicolon to Avoid Auto Semicolon Insertion
2019-06-27 11:28:14 +05:30
PatOnTheBack d582ccfc9f 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)
2019-06-26 21:23:46 -04:00
Libin Yang 2c1cd5595a Merge pull request #86 from Mavroian/master
Add Jump Search Algorithm
2019-05-11 10:15:52 +08:00
Libin Yang 695ac54df2 Update jumpSearch.js 2019-05-11 10:13:32 +08:00
mavroian e92c4ae40a Added JumpSearch algorithm 2019-05-10 17:43:44 +09:00
mavroian 46eca98c72 Added Jump Search to readme.md 2019-05-10 17:43:13 +09:00
Ravi Patel f76f615556 Added SHA-1 and SHA-256 hashing algorithms (#83)
* Added SHA-1 and SHA-256 hashing algorithms

* Fixed typos in comments

* Removed redundant unsigned integer casting
2019-05-06 18:40:13 +03:00
Anup Kumar Panwar 9bcf32a1e2 Merge pull request #84 from ntedgi/graph-based-algorithems
adding Graph data structure
2019-05-02 17:33:47 +05:30
naor b2abfc24e3 adding Graph data structure 2019-05-02 12:53:40 +03:00
Akarsh 4b47c0661b Add wiggle sort 2019-04-25 21:58:03 +05:30
Mohit Sharma ad001c44b9 Merge pull request #73 from AlexDvorak/master
added DecimalToHex
2019-03-21 12:06:59 +05:30
Mohit Sharma 2450f24c50 Merge pull request #80 from winsonrich/patch-6
Update keyFinder.js
2019-03-21 12:05:09 +05:30
Alex 8a356cd839 fixed alert 2019-02-24 15:06:59 -06:00
Alex 97ac1c3d24 fixed and added test cases 2019-02-24 15:00:42 -06:00
Wan Cheuk Lun 2445600a53 Update keyFinder.js
Add some key words to the wordbank to increase the chance of the matching.
2018-10-31 17:08:24 +08:00
Wan Cheuk Lun 75d7ef53dc Update keyFinder.js
Finally, there are several changes in the function keyFinder(str) that make it works well
2018-10-31 16:54:20 +08:00
Wan Cheuk Lun fed5d517fd Update keyFinder.js
a sub-function is used to assist the keyfinder to find the key
2018-10-31 10:36:52 +08:00
Wan Cheuk Lun a93d5cfe67 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
2018-10-31 10:10:17 +08:00
Wan Cheuk Lun 6c894a2aa5 Update keyFinder.js
modified used the suitable identifier for the variables
2018-10-31 09:47:06 +08:00
Mohit Sharma 9cabd462ec Merge pull request #78 from winsonrich/patch-4
Create keyFinder.js
2018-10-30 15:11:05 +05:30
Wan Cheuk Lun 7a04d2ad86 Update keyFinder.js
Made 2 changes to optimize the match results:
1. use a loop to find the next digit of wordbank element and compare with outStr's digit
2. this part need to be optimize with the calculation of the number of occurance of word's probabilities
2018-10-30 11:20:32 +08:00
Wan Cheuk Lun e41ad76298 Update keyFinder.js
some changes is made to optimize the function
2018-10-27 12:29:36 +08:00
Wan Cheuk Lun e0fa99b2fd Update keyFinder.js
optimized the indentation for the if statement in line 18
2018-10-27 11:13:15 +08:00
Wan Cheuk Lun 5a75bcae52 Rename keyFinder to keyFinder.js 2018-10-27 10:38:07 +08:00
Wan Cheuk Lun 633105633b Create keyFinder
Find and retrieve the encryption key automatically 
Note: This is a draft version, please help to modify, Thanks!
2018-10-25 20:15:11 +08:00
Alex Brown 3e47ca62c0 deleted checksums 2018-10-23 13:25:13 -05:00
Mohit Sharma 7b82729d7e Merge pull request #64 from KuLi/bucket_sort
Implemented bucket sort algorithm
2018-10-23 10:49:45 +05:30
Mohit Sharma 9f7639e498 Merge pull request #74 from KuLi/cycleSort
Implemented cycle sort algorithm
2018-10-23 09:43:08 +05:30
KuLi 7a814932a4 Implemented cycle sort algorithm 2018-10-22 19:27:31 +02:00
Alex Brown f44fdc7dd0 added luhn's checksum algorithm 2018-10-21 18:57:20 -05:00
Alex Brown 31d5467ada added DecimalToHex 2018-10-20 15:35:49 -05:00
Parth Shandilya 2d503575f6 Merge pull request #66 from ParthS007/patch
Added Missing declaration
2018-10-19 13:28:48 +05:30
ParthS007 348919a066 Added Missing declaration 2018-10-19 13:07:13 +05:30
Mohit Sharma 120947a7ca Merge pull request #65 from KuLi/combSort
Implemented comb sort algorithm
2018-10-18 20:57:20 +05:30
KuLi 3afb902885 Implemented comb sort algorithm 2018-10-18 16:58:37 +02:00
KuLi 9cd9b16bee Implemented bucket sort algorithm 2018-10-17 19:23:59 +02:00
Parth Shandilya 988572e5bb Merge pull request #63 from ParthS007/patch
Fixes#62 : Added Declaration for Local Variable
2018-10-17 01:13:12 +05:30
ParthS007 b96bab7fe1 Added Declaration for Local Variable 2018-10-16 19:11:21 +05:30