This repo includes algorithms, datastructures and leetcode interview questions & answers in java.
- arrays
- backtracking
- binary search
- bit manipulation
- dynamic programming
- graph
- hashing
- heap
- linkList
- recursion
- sorting
- trees
This repository also contains solutions to the LeetCode Blind 75 Questions. Each question has been solved and explained in this repository.
- Contains Duplicate
- Valid Anagram
- Two Sum
- Group Anagrams
- Top K Frequent Elements
- Product of Array Except Self
- Encode and Decode Strings
- Longest Consecutive Sequence
- Valid Palindrome
- 3Sum
- Container With Most Water
- Best Time to Buy And Sell Stock
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Minimum Window Substring
- Valid Parentheses
- Find Minimum In Rotated Sorted Array
- Search In Rotated Sorted Array
- Reverse Linked List
- Merge Two Sorted Lists
- Reorder List
- Remove Nth Node From End of List
- Linked List Cycle
- Merge K Sorted Lists
- Invert Binary Tree
- Maximum Depth of Binary Tree
- Same Tree
- Subtree of Another Tree
- Lowest Common Ancestor of a Binary Search Tree
- Binary Tree Level Order Traversal
- Validate Binary Search Tree
- Kth Smallest Element In a Bst
- Construct Binary Tree From Preorder And Inorder Traversal
- Binary Tree Maximum Path Sum
- Serialize And Deserialize Binary Tree
- Implement Trie Prefix Tree
- Design Add And Search Words Data Structure
- Word Search II
- Find Median From Data Stream
- Combination Sum
- Word Search
- Number of Islands
- Clone Graph
- Pacific Atlantic Water Flow
- Course Schedule
- Number of Connected Components In An Undirected Graph
- Graph Valid Tree
- Alien Dictionary
- Climbing Stairs
- House Robber
- House Robber II
- Longest Palindromic Substring
- Palindromic Substring
- Decode Ways
- Decode Ways
- Coin Change
- Maximum Product Subarray
...