This Repo contains Java Programs on following topics from LeetCode :
- 1D Arrays (58 ques)
- 2D Arrays
- Strings
- Hash Table
- Linked Lists
- Stacks
- Queues
- Two Pointers
- Binary Search
- Tree
- Depth-first Search
- Breadth-first Search
- Bit Manipulation
- Math
- Others
- Two Sum
- Remove Duplicates from Sorted Array
- Remove Element
- Search Insert Position
- Maximum Subarray
- Plus One
- Merge Sorted Array [2pointers]
- Best Time to Buy and Sell Stock
- Best Time to Buy and Sell Stock II
- Two Sum II - Input array is sorted [2pointers]
- Majority Element
- Rotate Array
- Contains Duplicate
- Contains Duplicate II
- Missing Number
- Move Zeroes
- Third Maximum Number
- Find All Numbers Disappeared in an Array
- Max Consecutive Ones
- Fibonacci Number
- K-diff Pairs in an Array [2pointers]
- Array Partition I
- Shortest Unsorted Continuous Subarray
- Can Place Flowers
- Maximum Product of Three Numbers
- Maximum Average Subarray I
- Non-decreasing Array
- Longest Continuous Increasing Subsequence
- Degree of an Array
- 1-bit and 2-bit Characters
- Find Pivot Index
- Min Cost Climbing Stairs [dp]
- Largest Number At Least Twice of Others
- Maximize Distance to Closest Person
- Fair Candy Swap [math]
- Monotonic Array
- Sort Array By Parity
- X of a Kind in a Deck of Cards [math]
- Sort Array By Parity II
- Valid Mountain Array
- Squares of a Sorted Array
- Add to Array-Form of Integer
- Find Common Characters [string]
- Pairs of Songs With Total Durations Divisible by 60
- Partition Array Into Three Parts With Equal Sum
- Binary Prefix Divisible By 5 [bit]
- Height Checker
- Duplicate Zeros
- Relative Sort Array
- Find Words That Can Be Formed by Characters [string]
- Compare Strings by Frequency of the Smallest Character [string]
- Distance Between Bus Stops
- Day of the Week [date][worthless_ques][10x_down]
- Play with Chips
- Element Appearing More Than 25% In Sorted Array
- Find Numbers with Even Number of Digits
- Replace Elements with Greatest Element on Right Side
- Find N Unique Integers Sum up to Zero
- Decompress Run-Length Encoded List
- Rank Transform of an Array
- Check If N and Its Double Exist
- Pascal's Triangle [dp]
- Pascal's Triangle II
- Reshape the Matrix
- Image Smoother
- Toeplitz Matrix
- Positions of Large Groups [string]
- Flipping an Image
- Magic Squares In Grid [regex]
- Transpose Matrix
- Sum of Even Numbers After Queries
- Available Captures for Rook
- Number of Equivalent Domino Pairs
- Minimum Absolute Difference
- Check If It Is a Straight Line
- Cells with Odd Values in a Matrix
- Shift 2D Grid
- Minimum Time Visiting All Points
- Find Winner on a Tic Tac Toe Game
- Shortest Word Distance [Paid]
- Maximum Distance in Arrays [Paid]
- Fixed Point [Paid]
- Sum of Digits in the Minimum Number [Paid]
- High Five [Paid]
- Two Sum Less Than K [Paid]
- Largest Unique Number [Paid]
- Check If a Number Is Majority Element in a Sorted Array [Paid]
- Diet Plan Performance [Paid]
- Array Transformation [Paid]
- Roman to Integer
- Longest Common Prefix
- Valid Parentheses
- Implement strStr()
- Count and Say
- Length of Last Word
- Add Binary
- Valid Palindrome
- Read N Characters Given Read4
- Flip Game
- Reverse String
- Reverse Vowels of a String
- Ransom Note
- First Unique Character in a String
- Valid Word Abbreviation
- Add Strings
- Number of Segments in a String
- String Compression
- Repeated Substring Pattern
- Detect Capital
- Longest Uncommon Subsequence I
- Reverse String II
- Student Attendance Record I
- Reverse Words in a String III
- Construct String from Binary Tree
- Robot Return to Origin
- Valid Palindrome II
- Repeated String Match
- Count Binary Substrings
- To Lower Case
- Bold Words in String
- Rotated Digits
- Similar RGB Color
- Unique Morse Code Words
- Most Common Word
- Goat Latin
- Buddy Strings
- Groups of Special-Equivalent Strings
- Reverse Only Letters
- Long Pressed Name
- Unique Email Addresses
- Reorder Data in Log Files
- Index Pairs of a String
- Greatest Common Divisor of Strings
- Defanging an IP Address
- Remove Vowels from a String
- Single-Row Keyboard
- Compare Strings by Frequency of the Smallest Character
- Count Substrings with Only One Distinct Letter
- Maximum Number of Balloons
- Split a String in Balanced Strings
- Hexspeak
Arrays, Strings, Linked Lists, Stack & Queue, Tree, Heap, Recursion, Hashing, Graph, Greedy, Dynamic Programming, Divide and Conquer, Backtracking, Bit Magic
- https://leetcode.com/problemset/all/
- https://leetcode.com/problemset/all/?listId=wpwgkgt
- https://leetcode.com/problemset/all/?listId=79h8rn6
- https://www.geeksforgeeks.org/must-do-coding-questions-for-companies-like-amazon-microsoft-adobe/
- https://www.geeksforgeeks.org/top-10-algorithms-in-interview-questions/
- https://www.geeksforgeeks.org/top-25-interview-questions/
- https://www.geeksforgeeks.org/10-important-interview-questions/