367 Commits

Author SHA1 Message Date
0fd1a19ba5 Created Tree Section + Moved Tree algorithm from into the folder (#236) 2020-07-28 21:46:56 +05:30
8a9ea57f01 fixed issue with delete operator on stacks (#218)
* fixed issue with delete operator 

using delete operator in arrays ,element remains undefined. so splice is the clean way to do that

* Fixed the semicolon and let errors

* Update Stack.js
2020-07-24 09:38:56 +05:30
edd5a69c4c updating DIRECTORY.md 2020-07-23 15:25:40 +00:00
f21e460729 Added Kruskal's Algorithm (#232) 2020-07-23 20:55:21 +05:30
3701b449be updating DIRECTORY.md 2020-07-19 04:52:55 +00:00
e20c99809e Added DFS (Iterative) - Graph (#229) 2020-07-19 10:22:10 +05:30
8e13280357 updating DIRECTORY.md 2020-07-14 12:05:03 +00:00
b5899d5294 Added DFS (Recursive) - Graph (#228) 2020-07-14 17:34:42 +05:30
4534582567 updating DIRECTORY.md 2020-07-09 20:08:43 +00:00
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