Java solutions to all the problems solved by myself in GeeksForGeeks website. Keeping a daily dairy about problem solving. https://www.geeksforgeeks.org/
- 06.10.2020 : Pascal's Triangle (Easy) : Solution
- 29.09.2020 : Topological Sort (Medium) : Solution
- 26.09.2020 : Next Permutation (Medium) : Solution
- 25.09.2020 : Non-overlapping Intervals (Medium) : Solution
- 24.09.2020 : Maximum Product Contiguous Subarray (Medium) : Solution
- 23.09.2020 : Merge two sorted arrays with O(1) space (Hard) : Solution
- 22.09.2020 : Minimum Number of Arrows to Burst Balloon (Medium) : Solution || Find Missing And Repeating (Medium) : Solution
- 11.09.2020 : LCA of BST (Easy) : Solution || Construct Tree from Inorder & Postorder (Easy) : Solution
- 08.09.2020 : Level order traversal (Medium) : Solution || Vertical Traversal of Binary Tree (Medium) : Solution || Bottom View of Binary Tree (Medium) : Solution || Top View of Binary Tree (Medium) : Solution
- 07.09.2020 : Right View of Binary Tree (Easy) : Solution
- 05.09.2020 : Combination Sum 1 (Medium) : Solution || Combination Sum 2 (Medium) : Solution
- 04.09.2020 : Solve the Sudoku (Medium) : Solution
- 03.09.2020 : Check validity of sudoku (Medium) : Solution || Rat in a Maze (Medium) : Solution
- 02.09.2020 : Clone a graph (Medium) : Solution
- 01.09.2020 : Clone a Binary Tree with random pointer (Medium) : Solution
- 27.08.2020 : LRU Cache (Medium) : Solution
- 26.08.2020 : Preorder Traversal (Basic) : Solution || Set Matrix Zeroes Ones (Medium) : Solution || Postorder Traversal (Basic) : Solution
- 25.08.2020 : Intersection of Two Linked Lists (Medium) : Solution || Inorder Traversal (Basic) : Solution
- 24.08.2020 : Remove duplicate element from sorted Linked List (Easy) : Solution || Remove duplicate element and keep only distinct elements in sorted Linked List (Easy) : Solution || Remove Nth Node From End of List (Medium) : Solution || Finding middle element in a linked list (Basic) : Solution || Make middle node head in a linked list (Easy) : Solution
- 23.08.2020 : Insert into Sorted Circular Linked List (Easy) : Solution
- 22.08.2020 : Duplicate in an array of N+1 integers (Medium) : Solution || Sort an array of 0s, 1s and 2s (Easy) : Solution
- 21.08.2020 : Prison Cells After N Days (Medium) : Solution
- 04.08.2020 : Min num of coins change (Medium) : Solution || Num of ways to make coin change (Medium) : Solution
- 03.08.2020 : Total number of ways to decode a message (Medium) : Solution
- 02.08.2020 : Minimum cuts needed for palindrome partitioning of a given string (Easy) : Solution || Edit Distance (Medium) : Solution
- 01.08.2020 : Circular tour of gas station (Medium) : Solution
- 31.07.2020 : Nth Fibonacci Number (Basic) : Solution || Count ways to reach the n'th stair using step 1 or 2 (Medium) : Solution || Count ways to reach the n'th stair using step 1, 2 or 3 (Medium) : Solution || Max Sum without Adjacents (Easy) : Solution || Stickler Thief (Easy) : Solution
- 30.07.2020 : Regular Expression Matching (Medium) : Solution
- 29.07.2020 : Minimum number of jumps to reach end of array (Medium) : Solution
- 28.07.2020 : Majority Element (Basic) : Solution
- 27.07.2020 : Longest Palindromic Substring (Medium) : Solution || Max Sum Contiguous Subarray Kadane algo (Medium) : Solution
- 26.07.2020 : Trie - Insert and Search (Medium) : Solution || Trie - Delete (Medium) : Solution
- 25.07.2020 : Count of Smaller Numbers After Self (Easy) : Solution
- 24.07.2020 : Smallest power of 2 greater than or equal to n (Basic) : Solution || Range Minimum Query using Segment Tree (Medium) : Solution
- 23.07.2020 : Minimum meeting rooms required (Medium) : Solution || Merge overlapping Intervals (Medium) : Solution
- 19.07.2020 : Find whether path exist (Medium) : Solution || Clone linked list with next and random pointer (Medium) : Solution
- 18.07.2020 : Unit Area of largest region of 1's (Medium) : Solution
- 17.07.2020 : Diameter of Binary Tree (Easy) : Solution
- 15.07.2020 : Find the path between two corners in a grid (Medium) : Solution || Rotten Oranges (Medium) : Solution
- 14.07.2020 : Word Ladder (Medium) : Solution || Check Bipartite Graph (Medium) : Solution
- 13.07.2020 : Detect cycle in an undirected graph (Medium) : Solution || N-Queen Problem (Hard) : Solution
- 12.07.2020 : Merge k Sorted Arrays (Medium) : Solution || Merge K sorted linked lists (Medium) : Solution
- 11.07.2020 : Check if Linked List is Palindrome (Easy) : Solution
- 10.07.2020 : Source to destination shortest path in undirected unweighted graph (Easy) : Solution || Count subarrays having sum zero (Medium) : Solution || Add two numbers represented by linked lists (Easy) : Solution
- 09.07.2020 : Check if a path exists between two vertices in a directed graph (Easy) : Solution || BFS traversal of graph (Easy) : Solution
- 08.07.2020 : Check if Undirected Graph is Connected (Easy) : Solution
- 05.07.2020 : Print adjacency list (Easy) : Solution || Print adjacency list (Easy) : Solution || Count ways to express a number as sum of powers (Medium) : Solution || Repetitive Addition Of Digits (Basic) : Solution
- 04.07.2020 : BST from sorted array (Easy) : Solution || k-th smallest element in BST (Medium) : Solution
- 03.07.2020 : Construct Tree from Inorder & Preorder (Easy) : Solution || Lowest Common Ancestor in a Binary Tree (Easy) : Solution
- 02.07.2020 : Generate All Possible Parentheses (Medium) : Solution || Palindrome Partitioning of a string (Hard) : Solution
- 29.06.2020 : Tower of Hanoi (Basic) : Solution || Kth permutation of a sequence (Hard) : Solution
- 28.06.2020 : Count distinct pairs with difference k (Easy) : Solution || Kth largest element in a stream (Medium) : Solution
- 27.06.2020 : Find median in a stream (Hard) : Solution || Find k most frequent words from file (Hard) : Solution
- 26.06.2020 : Minimum Cost of ropes (Medium) : Solution
- 25.06.2020 : Anagram Palindrome (Basic) : Solution || Subarray with 0 sum (Easy) : Solution
- 24.06.2020 : ZigZag Tree Traversal (Easy) : Solution || Nth node of linked list (Basic) : Solution
- 23.06.2020 : Next larger element (Medium) : Solution
- 22.06.2020 : Parenthesis Checker (Medium) : Solution
- 16.06.2020 : Delete Linked List node at given position (Easy) : Solution || Delete without head pointer (Medium) : Solution
- 15.06.2020 : Swap all odd and even bits (Easy) : Solution
- 14.06.2020 : First and last occurrences of X (Basic) : Solution || Number of occurrences of X in sorted array (Basic) : Solution
- 13.06.2020 : Search in a matrix (Easy) : Solution || Sum of Middle Elements of two sorted arrays (Easy) : Solution
- 12.06.2020 : Length of the longest substring (Medium) : Solution || Search in a Rotated Array (Easy) : Solution
- 11.06.2020 : Count Occurences of Anagrams (Easy) : Solution
- 10.06.2020 : Longest K unique characters substring (Easy) : Solution
- 09.06.2020 : Length Unsorted Subarray (Easy) : Solution
- 08.06.2020 : Reverse a Linked List in groups of given size (Medium) : Solution
- 07.06.2020 : Detect Loop in linked list (Easy) : Solution || Remove loop in Linked List (Medium) : Solution
- 30.05.2020 : Reverse a linked list (Easy) : Solution || Print Linked List elements (Basic) : Solution
- 25.05.2020 : Inorder Successor in BST (Easy) : Solution
- 24.05.2020 : Product array puzzle (Easy) : Solution
- 23.05.2020 : Fixing Two nodes of a BST (Hard) : Solution || Check for BST (Medium) : Solution
- 21.05.2020 : Exchange the Leaf Nodes (Easy) : Solution
- 20.05.2020 : Delete a node from BST (Medium) : Solution || Minimum element in BST (Basic) : Solution
- 19.05.2020 : Insert a node in a BST (Easy) : Solution
- 18.05.2020 : Left View of Binary Tree (Easy), : Solution || Sum of Left Leaf Nodes (Easy) : Solution
- 17.05.2020 : Connect Nodes at Same Level (Medium) : Solution
- 16.05.2020 : longest Consecutive Sequence in Binary Tree (Easy) : Solution