Author: Rohit Ramsen
Linked List
1. Reverse List in place, Time : O(n) and Space : O(1). 2. Reverse List in Pairs in place, Time : O(n) and Space : O(1). 3. Reverse
Read More
Linked List
Detect and Remove Loop in a Linked List. Solution : 1 : Using map maintain key value pair of node and its next pointer , while traversing before
Read More
Linked List
Clone a linked list with next and random pointer. Solution 1 : By using Map, In first traversing of list clone the entire list into map. And now
Read More
Game
John Conway’s Game of Life : Implementation in Java Game Rules : 1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.
Read More