508 Commits

Author SHA1 Message Date
6a80dc7179 Added Prim's Algoritm (#227) 2020-07-10 01:38:14 +05:30
9030de43a7 updating DIRECTORY.md 2020-07-07 07:09:51 +00:00
f34fd6d8f0 Added Connected Components using DFS (#223) 2020-07-07 12:39:33 +05:30
4b2d6acced updating DIRECTORY.md 2020-07-07 07:08:42 +00:00
7822e8a235 Added LFU Cache (#221)
* Added LFU Cache

* Added explaination for the algo

* Fixed Typo
2020-07-07 12:38:18 +05:30
95d799ab5e updating DIRECTORY.md 2020-07-07 02:11:23 +00:00
5150909f18 added GridGetX and GridGetY (#222)
* added GridGetX and GridGetY

* fixed Node CI issues

* fixed Node CI issues

* made requested changes

* fixed Node CI errors
2020-07-07 07:40:57 +05:30
40000d56c3 updating DIRECTORY.md 2020-07-02 10:36:20 +00:00
e646b45460 Added LRU Cache (#219) 2020-07-02 16:06:02 +05:30
2e139cc5de Create stale.yml 2020-07-02 09:54:33 +05:30
4df472a361 Update HexToRGB.js 2020-06-30 23:05:47 +05:30
b511652a95 updating DIRECTORY.md 2020-06-30 15:59:57 +00:00
5ea15b49c9 Rename HexToRGB to HexToRGB.js 2020-06-30 21:29:29 +05:30
3f1e556d20 updating DIRECTORY.md 2020-06-30 15:58:51 +00:00
52c04e3cc6 Added Open Knight Tour Algorithm (#214)
* Added Open Knight Tour by @ruppysuppy
2020-06-30 21:28:30 +05:30
f795b6d801 updating DIRECTORY.md 2020-06-30 04:04:55 +00:00
bf9100f40f Added CheckPalindrome (#213)
* Added CheckPalindrome contributed by @Swapnil-2001
2020-06-30 09:34:33 +05:30
3e787629ec Removed package-lock.json (#212)
* fixes: #210

* Fixes: #210
2020-06-28 14:08:17 +05:30
729b2d6c8c updating DIRECTORY.md 2020-06-28 07:10:59 +00:00
0c3fd105c8 Rename DFS.js to DepthFirstSearch.js 2020-06-28 12:40:36 +05:30
ef5566f6a6 Update BinarySearch.js (#209)
* Update BinarySearch.js

The old algorithm didn't work, I believe for two main reasons:
1 -  Number.MAX_VALUE is not a valid array index as it is used to represent the highest possible value in javascript (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE);

2 - splice() is not a pure function, every time it is called it has the side effect of modifying the original array (https://www.w3schools.com/jsref/jsref_splice.asp) ;

So I rewrote the algorithm, it now returns an index ( -1 if not found ) and it works both on numbers and on strings.

* Update BinarySearch.js

Style change

* Update BinarySearch.js

Style change

* Update BinarySearch.js
2020-06-28 12:29:19 +05:30
744291b7f0 updating DIRECTORY.md 2020-06-26 15:33:05 +00:00
40f91ece25 Added n-queen (#206) 2020-06-26 21:02:40 +05:30
129ec51861 bugfix (#207)
Push should be converted to hexout. unshift
2020-06-26 19:27:39 +05:30
4d4f668451 updating DIRECTORY.md 2020-06-26 05:10:30 +00:00
a70dfe9b7a Added backtracking (sudoku) (#205)
* Added backtracking (sudoku)

* Coverted into class based program
2020-06-26 10:40:03 +05:30
9e414b7896 updating DIRECTORY.md 2020-06-24 05:55:25 +00:00
4203835cd6 Added Monte Carlo Pi Approximation (#201)
* Added Monte Carlo Pi Approximation

* Added comments
2020-06-24 11:25:01 +05:30
d8eee0c70d Added .gitignore (#203) 2020-06-24 11:24:19 +05:30
3725d95d95 updating DIRECTORY.md 2020-06-23 04:48:01 +00:00
4be7a85fd3 Added an XOR cipher (#135)
* Added an XOR cipher

* Rename xor_cipher.js to XORCipher.js

* Update XORCipher.js

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-06-23 10:17:44 +05:30
3874ec3778 updating DIRECTORY.md 2020-06-23 04:12:52 +00:00
269157f65b Added DFS Algorithm (#199)
* FibonacciSearch

* FibonacciSearch

* Depth First Search Algorithms

* Depth First Search Algorithms

* Depth First Search Algorithms

* Depth First Search Algorithms
2020-06-23 09:42:36 +05:30
fa1879c654 updating DIRECTORY.md 2020-06-21 17:19:07 +00:00
b2b1ad3724 update (#197)
Co-authored-by: itsvinayak <itssvinayak@gmail.com>
2020-06-21 22:48:52 +05:30
ca2170d44d updating DIRECTORY.md 2020-06-21 16:38:45 +00:00
412995ac09 Added Web-Programming (Open Weather Maps data fetch) (#196)
* Added Web-Programming (Open Weather Maps data fetch)

* update

Co-authored-by: itsvinayak <itssvinayak@gmail.com>
2020-06-21 22:08:29 +05:30
78262df0a2 updating DIRECTORY.md 2020-06-21 05:10:50 +00:00
b8fecdd68e Merge branch 'jonathangomz-patch-2' 2020-06-21 10:40:00 +05:30
0bb7942a40 Create RomanToDecimal.js 2020-06-21 10:39:32 +05:30
c9b3d25c53 Create RomanToDecimal.js
Conversion from Roman numeral system to decimal
2020-06-21 10:37:23 +05:30
5f961ba898 updating DIRECTORY.md 2020-06-20 04:57:06 +00:00
37ab4b0752 rename and reorganizing (#194) 2020-06-20 10:26:44 +05:30
656391bbf5 updating DIRECTORY.md 2020-06-20 04:44:46 +00:00
7e93136075 Dijkstras algorithm (#161)
* Renaming files according to naming convention

* Added Dijkstra's Algorithm
2020-06-20 10:14:31 +05:30
688043eb32 updating DIRECTORY.md 2020-06-20 04:39:28 +00:00
f75549f6d7 Created DijkstraSmallestPath.js in Graphs (#185)
* Created DijkstraSmallestPath.js in Graphs

* Deleted DijkstraSmallestPath.js from Maths
2020-06-20 10:09:07 +05:30
5ba1cffb20 Optimizing maxSum updation (#186)
* Optimizing maxSum updation

compare maxSum with cummulativeSum only when cummulativeSum is greater than zero

* Fixing linter error
2020-06-12 18:04:18 +05:30
bc3d69dd12 updating DIRECTORY.md 2020-05-27 16:56:48 +00:00
1a263d00d4 Merge pull request #179 from ChaymaJaziri/patch-2
HexToRGB
2020-05-27 22:26:23 +05:30