AlgoMonster
🏗️ Templates⚡ Speedrun 💨🧭 Roadmap
More
Premium
📺 Youtube💬 Discord📈 My Stats👉 Log In
You current level is Student
0%
Full Statistics
Filter by tags

Overview

  • Top Patterns to Conquer the Interview
  • The PTS System
  • Math Basics
  • Runtime to Algo Cheat Sheet
  • Keyword to Algo Cheat Sheet

Basic Data Structures

  • Stack Intro
  • Queue Intro
  • Hashmap Intro
  • Python Basic Data Structures
  • Java Basic Data Structures
  • JavaScript Basic Data Structures
  • C++ Basic Data Structures

Basic Algorithms

  • Intro to Sorting
  • Advanced Sorting Algorithms - Merge Sort | Quick Sort
  • Sorting Summary
  • Built-in Sort with Custom Comparator

Overview

  • Vanilla Binary Search
  • First True in a Sorted Boolean Array

Sorted Array

  • Monotonic Function
  • First Element Not Smaller Than Target
  • First Occurrence
  • Square Root Estimation

Implicitly Sorted Array

  • Minimum in Rotated Sorted Array
  • Peak of Mountain Array

Advanced

  • Newspapers

Speedrun

  • Binary Search Speedrun

Introduction

  • Recursion Review
  • Everything About Trees
  • DFS Fundamentals

DFS on Tree

  • Introduction
  • Max Depth of A Tree
  • Visible Tree Node
  • Balanced Binary Tree
  • Serializing and Deserializing Binary Tree
  • Invert Binary Tree

Binary Search Tree

  • Binary Search Tree Intro
  • Valid Binary Search Tree
  • Insert Into BST
  • Lowest Common Ancestor of a Binary Search Tree

Advanced

  • Lowest Common Ancestor

Combinatorial Search

  • DFS with States
  • Backtracking 1
  • Generate All Phone Number Combinations

Pruning

  • Backtracking 1 - Pruning
  • Partition a String Into Palindromes

Additional States

  • Backtracking 1 - Additional States
  • Generate All Valid Parentheses
  • General All Permutations

Aggregation and Memoization

  • Backtracking 2 - Aggregation
  • Memoization
  • Word Break
  • Num Ways to Decode a Message
  • Min Coins to Make Change

Dedup

  • Deduplication
  • Combination Sum

Additional Practices

  • Subsets

Speedrun

  • Backtracking Speedrun

Introduction

  • BFS Fundamentals

BFS on Tree

  • Binary Tree Level Order Traversal
  • Binary Tree ZigZag Level Order Traversal
  • Binary Tree Right Side View
  • Binary Tree Min Depth

Introduction

  • Graph Fundamentals
  • BFS on Graphs
  • DFS on Graph
  • BFS or DFS

Vanilla BFS

  • Shortest Path

Matrix as Graph

  • Matrix as Graph
  • Flood Fill
  • Number of Islands
  • Knight Minimum Moves
  • Walls and Gates / Zombie in Matrix

Implicit Graph

  • Open the Lock
  • Word Ladder
  • Sliding Puzzle

Directed Graph / Topological Sort

  • Topological Sort Introduction
  • Task Scheduling
  • Reconstructing Sequence
  • Task Scheduling 2
  • Alien Dictionary
  • Course Schedule

Weighted Graph

  • Dijkstra's Algorithm | Shortest Path in a Weighted Graph

Minimum Spanning Tree

  • Introduction to Minimum Spanning Tree
  • Minimum Spanning Tree | Forests

Speedrun

  • Graph Speedrun - Part 1
  • Graph Speedrun - Part 2

Introduction

  • Two Pointers Introduction

Same Direction

  • Remove Duplicates
  • Middle of a Linked List
  • Move Zeros

Opposite Direction

  • Two Sum Sorted
  • Valid Palindrome

Sliding Window

  • Subarray Sum - Fixed
  • Find All Anagrams in a String
  • Sliding Window - Longest
  • Longest Substring without Repeating Characters
  • Sliding Window - Shortest
  • Least Consecutive Cards to Match

Prefix Sum

  • Subarray Sum

Cycle Finding

  • Linked List Cycle

Advanced

  • Minimum Window Substring
  • Teleporter Arrays

Speedrun

  • Two Pointers Speedrun

Introduction

  • Heap Fundamentals

Top K

  • K Closest points
  • Merge K Sorted Lists
  • Kth Largest Element in an Array
  • Kth Smallest Element in a Sorted Matrix

Moving Best

  • Reorganize String
  • Ugly Number

Multiple Heaps

  • Median of Data Stream

Introduction

  • Dynamic Programming Introduction and Patterns

Knapsack

  • Knapsack, Weight-Only
  • Partition to Two Equal Sum Subsets
  • Triangle

Coin Change

  • Coin Change
  • Coin Change II

Grid

  • Number of Robot Paths
  • Minimal Path Sum

Dynamic number of subproblems

  • Longest Increasing Subsequence
  • Largest Divisible Subset
  • Perfect Squares

Interval

  • Interval Dynamic Programming | Coin Game
  • Festival Game

Two Sequences

  • Longest Common Subsequence
  • Edit Distance
  • Delete String

0-1 Knapsack

  • 0-1 Knapsack

Bitmask

  • Bitmask Introduction
  • Min Cost to Visit Every Node

Disjoint Set Union | Union Find

  • DSU/Union Find Fundamentals
  • DSU Introductory Problem
  • Size of Connect Components
  • Umbristan | Reverse Union Find
  • Merge User Accounts
  • Number of Connected Components

Trie

  • Trie Introduction
  • Autocomplete
  • Prefix Count

Data Structure Design

  • LRU Cache

Segment Tree

  • Segment Tree
  • Range max

Interval

  • Intervals
  • Merge Intervals
  • Insert Interval
  • Meeting Room

Monotonic Stack

  • Monotonic Stack/Queue Intro
  • Sliding Window Maximum
  • Daily Temperatures
  • Next Greater Element II

Divide and Conquer

  • Divide and Conquer Intro
  • The Skyline Problem
  • Count of Smaller Numbers After Self

Line Sweep

  • Line-Sweep Introduction

Tree Traversal without Recursion

  • Closest BST Values II

Greedy

  • Gas Station

Math

  • Prime Sieve Introduction
  • N-th prime

Matrix

  • Sparse Matrix Multiplication

Classics

  • Playing Cards
  • Parking Spots
  • Public Library
  • Call Center
  • Vending Machine

Concepts

  • Load Balancing
  • Partition and Sharding
  • Caching

Projects

  • URL Shortener | TinyURL | System Design Interview Question
  • Web Crawler

Amazon OA

  • Amazon Online Assessment Questions 2021 (OA)
  • Robot in Circle
  • Number Game
  • Find All Combination of Numbers that Sum to a Target
  • Fill The Truck
  • Slowest Key
  • Five Star Sellers
  • Number of Ways to Split Into Primes
  • Storage Optimization
  • Music Pair
  • Minimum Difficulty of a Job Schedule
  • Autoscale Policy, Utilization Check
  • Optimal Utilization
  • Merge Two Sorted Lists
  • Two Sum - Unique Pairs
  • Shopping Patterns
  • Amazon Prime Air Delivery Route
  • Reorder Data in Log Files
  • Top K Frequently Mentioned Keywords

Microsoft OA

  • Microsoft Online Assessment Questions
  • Max Network Rank
  • Minimum Adj Swaps to Make Palindrome
  • Lexicographically Smallest String
  • Longest Substring Without 3 Contiguous Occurrences of Letter
  • Min Moves to Obtain String Without 3 Identical Consecutive Letters
  • String Without 3 Identical Consecutive Letters
  • Longest Semi-Alternating Substring
  • Min Steps to Make Piles Equal Height
  • Day of week that is K days later
  • Max Inserts to Obtain String Without 3 Consecutive 'a'
  • Concatenated String Length with unique Characters
  • Largest K such that both K and -K exist in array
  • Min Adj Swaps to Group Red Balls
  • Maximum Length of a Concatenated String with Unique Characters
  • Unique Integers That Sum Up To 0
  • Min Deletions To Obtain String in Right Format
  • Particle Velocity
  • Widest Path Without Trees
  • Jump Game
  • Fair Indexes
  • Partition array into N subsets with balanced sum

Google OA

  • Google Online Assessment Questions 2021 (OA)
  • Compare Strings
  • Largest Subarray
  • Maximum Area Serving Cake
  • Minimum Number of Decreasing Subsequence Partitions
  • Pick Up Coupons
  • Rose Garden
  • Smallest Integer Satisfying the Rule
  • Fill 2D Array
  • Water Plants
  • Split Strings
  • Google Online Assessment 2021 (OA) - Rings on Rods
  • Google Online Assessment 2021 (OA) - Longest Palindrome

Twitter OA

  • Twitter Online Assessment Questions 2021 (OA)
  • K-Different Pairs
  • Weird Faculty
  • Social Network
  • University Career Fair
  • Game Events
  • Activate Fountain
  • Final Discounted Price
  • Partition Array
  • Authentication Tokens
  • Parking Dilemma
  • Efficient Job Processing Service
  • Unique Twitter User ID Set

Editorials

  • LeetCode 1048. Longest String Chain Solution
  • LeetCode 1101. The Earliest Moment When Everyone Become Friends Solution
  • LeetCode 1218. Longest Arithmetic Subsequence of Given Difference
  • LeetCode 1277. Count Square Submatrices with All Ones Solution
  • LeetCode 1293. Shortest Path in a Grid with Obstacles Elimination Solution
  • LeetCode 1423. Maximum Points You Can Obtain from Cards Solution
  • LeetCode 1631. Path With Minimum Effort Solution
  • LeetCode 1697. Checking Existence of Edge Length Limited Paths Solution
  • LeetCode 1937. Maximum Number of Points with Cost Solution
  • LeetCode 2013. Detect Squares Solution
  • LeetCode 2096. Step-By-Step Directions From a Binary Tree Node to Another Solution
  • LeetCode 2128. Remove All Ones With Row and Column Flips Solution
  • LeetCode 2158. Amount of New Area Painted Each Day Solution
  • LeetCode 2178. Maximum Split of Positive Even Integers Solution
  • LeetCode 274. H-Index Solution
  • LeetCode 359. Logger Rate Limiter Solution
  • LeetCode 366. Find Leaves of Binary Tree Solution
  • LeetCode 394. Decode String Solution
  • Minimum Swaps to Group All 1's Together
  • LeetCode 419. Battleships in a Board Solution
  • LeetCode 720. Longest Word in Dictionary Solution
  • LeetCode 777. Swap Adjacent in LR String Solution
  • LeetCode 778. Swim in Rising Water
  • LeetCode 939. Minimum Area Rectangle Solution
  • Akuna OA
  • Another problem
  • Bad Product
  • Beautiful Arrangement
  • Boats to Save People
  • Combination Sum II
  • Container With Most Water
  • Course Schedule II
  • Koko Eating Bananas
  • Evaluate Division
  • Find All Possible Recipes From Given Supplies
  • Grey Code
  • Is Graph Bipartite
  • Kth Missing Positive Number
  • Longest Substring with At Most Two Distinct Characters
  • Matchsticks to Square
  • Maximal Network Rank
  • Minimum Swaps to Group All 1's Together
  • Minesweeper
  • Minimum Size Subarray Sum
  • Minimum Swaps to Group All 1's Together
  • My Calendar I
  • Network Delay Time
  • Numbers With Same Consecutive Differences
  • Pacific Atlantic Water Flow
  • Path Sum II
  • Permutations II
  • Plates Between Candles
  • Reconstruct Itinerary
  • Redundant Connection
  • Regions Cut By Slashes
  • Restore IP Addresses
  • Minimum Swaps to Group All 1's Together
  • Rotting Oranges
  • Satisfiability of Equality Equations
  • Find First and Last Position of Element in Sorted Array
  • Shortest Path in Binary Matrix
  • Single Element in a Sorted Array
  • Snapshot Array
  • Minimum Swaps to Group All 1's Together
  • Subsets II
  • Time Based key-Value Store
  • Minimum Swaps to Group All 1's Together
  • Word Break II
  • Leetcode 1700. Number of Students Unable to Eat Lunch Solution
  • Leetcode 1701. Average Waiting Time Solution
  • Leetcode 1702. Maximum Binary String After Change Solution
  • Leetcode 1703. Minimum Adjacent Swaps for K Consecutive Ones Solution
  • Leetcode 1704. Determine if String Halves Are Alike Solution
  • Leetcode 1705. Maximum Number of Eaten Apples Solution
  • Leetcode 1706. Where Will the Ball Fall Solution
  • Leetcode 1707. Maximum XOR With an Element From Array Solution
  • Leetcode 1708. Largest Subarray Length K Solution
  • Leetcode 1709. Biggest Window Between Visits Solution
  • Leetcode 1710. Maximum Units on a Truck Solution
  • Leetcode 1711. Count Good Meals Solution
  • Leetcode 1712. Ways to Split Array Into Three Subarrays Solution
  • Leetcode 1713. Minimum Operations to Make a Subsequence Solution
  • Leetcode 1714. Sum Of Special Evenly-Spaced Elements In Array Solution
  • Leetcode 1716. Calculate Money in Leetcode Bank Solution
  • Leetcode 1717. Maximum Score From Removing Substrings Solution
  • Leetcode 1719. Number Of Ways To Reconstruct A Tree Solution
  • Leetcode 1720. Decode XORed Array Solution
  • Leetcode 1721. Swapping Nodes in a Linked List Solution
  • Leetcode 1722. Minimize Hamming Distance After Swap Operations Solution
  • Leetcode 1724. Checking Existence of Edge Length Limited Paths II Solution
  • Leetcode 1725. Number Of Rectangles That Can Form The Largest Square Solution
  • Leetcode 1728. Cat and Mouse II Solution
  • Leetcode 1730. Shortest Path to Get Food Solution
  • Leetcode 1732. Find the Highest Altitude Solution
  • Leetcode 1736. Latest Time by Replacing Hidden Digits Solution
  • Leetcode 1737. Change Minimum Characters to Satisfy One of Three Conditions Solution
  • Leetcode 1738. Find Kth Largest XOR Coordinate Value Solution
  • Leetcode 1739. Building Boxes Solution
  • Leetcode 1740. Find Distance in a Binary Tree Solution
  • Leetcode 1742. Maximum Number of Balls in a Box Solution
  • Leetcode 1743. Restore the Array From Adjacent Pairs Solution
  • Leetcode 1744. Can You Eat Your Favorite Candy on Your Favorite Day? Solution
  • Leetcode 1745. Palindrome Partitioning IV Solution
  • Leetcode 1746. Maximum Subarray Sum After One Operation Solution
  • Leetcode 1748. Sum of Unique Elements Solution
  • Leetcode 1749. Maximum Absolute Sum of Any Subarray Solution
  • Leetcode 1750. Minimum Length of String After Deleting Similar Ends
  • Leetcode 1751. Maximum Number of Events That Can Be Attended II
  • Leetcode 1800. Maximum Ascending Subarray Sum Solution
  • Leetcode 1801. Number of Orders in the Backlog Solution
  • Leetcode 1802. Maximum Value at a Given Index in a Bounded Array Solution
  • Leetcode 1803. Count Pairs With XOR in a Range Solution
  • Leetcode 1805. Number of Different Integers in a String Solution
  • Leetcode 1806. Minimum Number of Operations to Reinitialize a Permutation Solution
  • Leetcode 1807. Evaluate the Bracket Pairs of a String Solution
  • Leetcode 1808. Maximize Number of Nice Divisors Solution
  • Leetcode 1810. Minimum Path Cost in a Hidden Grid Solution
  • Leetcode 1811. Find Interview Candidates Solution
  • Leetcode 1813. Sentence Similarity III Solution
  • Leetcode 1814. Count Nice Pairs in an Array Solution
  • Leetcode 1815. Maximum Number of Groups Getting Fresh Donuts Solution
  • Leetcode 1816. Truncate Sentence Solution
  • Leetcode 1817. Finding the Users Active Minutes Solution
  • Leetcode 1820. Maximum Number of Accepted Invitations Solution
  • Leetcode 1821. Find Customers With Positive Revenue this Year Solution
  • Leetcode 1822. Sign of the Product of an Array Solution
  • Leetcode 1823. Find the Winner of the Circular Game Solution
  • Leetcode 1824. Minimum Sideway Jumps Solution
  • Leetcode 1826. Faulty Sensor Solution
  • Leetcode 1827. Minimum Operations to Make the Array Increasing Solution
  • Leetcode 1828. Queries on Number of Points Inside a Circle Solution
  • Leetcode 1829. Maximum XOR for Each Query Solution
  • Leetcode 1831. Maximum Transaction Each Day Solution
  • Leetcode 1832. Check if the Sentence Is Pangram Solution
  • Leetcode 1833. Maximum Ice Cream Bars Solution
  • Leetcode 1834. Single-Threaded CPU Solution
  • Leetcode 1835. Find XOR Sum of All Pairs Bitwise AND Solution
  • Leetcode 1836. Remove Duplicates From an Unsorted Linked List Solution
  • Leetcode 1837. Sum of Digits in Base K Solution
  • Leetcode 1838. Frequency of the Most Frequent Element Solution
  • Leetcode 1839. Longest Substring Of All Vowels in Order Solution
  • Leetcode 1840. Maximum Building Height Solution
  • Leetcode 1841. League Statistics Solution
  • Leetcode 1842. Next Palindrome Using Same Digits Solution
  • Leetcode 1844. Replace All Digits with Characters Solution
  • Leetcode 1845. Seat Reservation Manager Solution
  • Leetcode 1846. Maximum Element After Decreasing and Rearranging Solution
  • Leetcode 1847. Closest Room Solution
  • Leetcode 1848. Minimum Distance to the Target Element Solution
  • Leetcode 1849. Splitting a String Into Descending Consecutive Values Solution
  • Leetcode 1850. Minimum Adjacent Swaps to Reach the Kth Smallest Number Solution
  • Leetcode 1851. Minimum Interval to Include Each Query Solution
  • Leetcode 1852. Distinct Numbers in Each Subarray Solution
  • Leetcode 1853. Convert Date Format Solution
  • Leetcode 1855. Maximum Distance Between a Pair of Values Solution
  • Leetcode 1856. Maximum Subarray Min-Product Solution
  • 2534 - Time Taken to Cross the Door | Leetcode Solution
  1. Two Pointers
  2. Sliding Window
  3. Sliding Window - Longest
Go Premium
Join our community on Discord