Saddam H
11f9a22b86
content: check if a number is a power of 2 ( #196 )
...
* Check if a number is a power of 2
This representation may be easier to understand for some people.
If a number is power of two then `AND` operation between the number and its complement will result into the same number.
* Update binary.md
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
4 years ago
Aadit Kamat
ca24fc0f20
contents: update linked list insertion and deletion explanation ( #175 )
4 years ago
Rafat Bin Islam
256c3847fe
contents: add tip on traversing arrays ( #171 )
4 years ago
Subham Bhattacharjee
c1386e812d
contents(oop): add new Elevator question ( #156 )
5 years ago
PranavPuranik
430b1ac501
contents: link to LeetCode's Longest Common Subsequence question ( #150 )
5 years ago
Yangshun Tay
002c7f1215
chore: remove freeform questions
5 years ago
Yangshun Tay
9631a1d8d9
misc: use Alice/Bob
5 years ago
Rafi Barash
c43337fdfb
Fix small issue with bfs algorithm ( #141 )
...
Algorithm performed a dfs rather than bfs because of the queue.pop() error on line 78. Updated to queue.popleft()
5 years ago
Aadit Kamat
473dfb2d22
contents: add bfs algorithm ( #137 )
...
* Add new Graph traversal implementation
* Add seperate BFS implementation
* Cleanup code and comments
* Rename variable and remove another comment
* Switch to deque for DFS implementation
Signed-off-by: Aadit Kamat <aadit.k12@gmail.com>
* Switch back to recursive DFS and check for empty graph
Signed-off-by: Aadit Kamat <aadit.k12@gmail.com>
* Update graph.md
5 years ago
Sameer Indarapu
0da41f944f
algorithms: remove duplicate question from sorting-searching.md ( #134 )
5 years ago
Yangshun Tay
e6193eca83
website: launch website
5 years ago
Yangshun Tay
c19c9626d1
misc: restructure contents
5 years ago