Commit Graph

11 Commits

Author SHA1 Message Date
Juliano Nunes
2e0bd65b0c Fixing non compliant files (Ciphers, Conversions and Data Structures) 2020-05-03 21:26:52 -03:00
cclauss
856dc2f63c npx standard --fix 2020-05-03 09:05:12 +02: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
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