Everything related to algorithms, toy problems. Find Data Structures here--> github.com/mrinalini-m/data_structures
You can can search problems by tags or by name in my blog--> blog.mrinalini.dev
Usage
- Clone repo
git clone https://github.com/mrinalini-m/algorithms.git
- To test individual problems: Eg, run
node leetcode/array_string/0001_two_sum.js
.
Note: List of problems in this README is NOT exhaustive.
- Is Unique
- Check Permutation
- URLify
- Palindrome Permutation
- One Away
- String Compression
- Rotate Matrix
- Zero Matrix
- String Rotation
- Remove Dups
- Return Kth to Last
- Delete Middle Node
- Partition
- Sum Lists
- Palindrome
- Intersection
- Loop Detection
- Three in One
- Stack Min
- Stack of Plates
- Queue via Stacks
- Sort Stack
- Animal Shelter
- Route Between Nodes
- Minimal Tree
- List of Depths
- Check Balanced
- Validate BST
- Merging Meeting Times
- Reverse String in Place
- Reverse Words
- Merge Sorted Arrays
- Cafe Order Checker
- Inflight Entertainment
- Permutation Palindrome
- Word Cloud Data
- Top Scores
- Apple Stocks
- Highest Product of 3
- Product of All Other Numbers
- Cafe Order Checker
- In-Place Shuffle
- 1. Two Sum
- 53. Maximum Subarray
- 20. Valid Parentheses
- 121. Best Time to Buy and Sell Stock
- 36. Valid Sudoku
- Find Longest Palindrome
- 544. Output Contest Matches
- 807. Max Increase to Keep City Skyline
- 91. Decode Ways
- 289. Game of Life
- 17. Letter Combinations of a Phone Number
- 6. ZigZag Conversion
- 974. Subarray Sums Divisible by K
- 739. Daily Temperatures
- 49. Group Anagrams
- 56. Merge Intervals
- 560. Subarray Sum Equals K
- 394. Decode String
- 179. Largest Number
- 79. Word Search
- 977. Squares of a Sorted Array
- 826. Most Profit Assigning Work
- 1091. Shortest Path in Binary Matrix
- 1057. Campus Bikes
- 695. Max Area of Island
- 3. Longest Substring Without Repeating Characters
- 973. k Closest Points
- 21. Merge Two Sorted Lists
- Clone Linked List
- 2. Add Two Numbers
- 1171. Remove Zero Sum Consecutive Nodes from Linked List
- 24. Swap Nodes in Pairs
- 138. Copy List with Random Pointer
- 1110. Delete Nodes And Return Forest
- 83. Remove Duplicates from Sorted List
- 199. Binary Tree Right Side View
- 700. Search in a Binary Search Tree
- 701. Insert into a Binary Search Tree
- 98. Validate Binary Search Tree
- 102. Binary Tree Level Order Traversal
- 109. Convert Sorted List to Binary Search Tree
- 863. All Nodes Distance K in Binary Tree
- 865. Smallest Subtree with all the Deepest Nodes