Coding Problems

Find the maximum in each sliding window of size k

Not Started
Algorithms 1000ms

Determine if a binary tree is a valid binary search tree

Not Started
Data Structures 1000ms

Design and implement an LRU (Least Recently Used) cache

Not Started
Data Structures 1000ms

Implement a stack using two queues with push, pop, top, and empty operations

Not Started
Data Structures 1000ms

Solve the Traveling Salesman Problem using DP with bitmasking.

Not Started
Dynamic Programming + Bit Manipulation 3000ms

Count inversions in an array (how far it is from being sorted).

Not Started
Sorting 2000ms

Count the number of 1 bits in an unsigned integer (binary representation).

Not Started
Bit Manipulation 500ms

Find an edge that can be removed to make a tree (detect cycle in undirected graph).

Not Started
Union-Find 1000ms

Find the smallest substring of s containing all characters of t.

Not Started
Sliding Window 1000ms

Find the minimum number of jumps to reach the end of the array.

Not Started
Greedy Algorithms 1000ms

Find the length of the longest subsequence common to two strings.

Not Started
Dynamic Programming 1000ms

Generate all possible subsets of a set (power set) using backtracking.

Not Started
Recursion & Backtracking 1000ms

A peak element is greater than its neighbors. Find any peak in O(log n) time.

Not Started
Searching 1000ms

Sort an array of 0s, 1s, and 2s in-place using the Dutch National Flag algorithm.

Not Started
Sorting 1000ms

Find the single number in array where others appear twice (use XOR)

Not Started
Bit Manipulation 500ms

Count number of islands in 2D grid using Union-Find

Not Started
Union-Find 1000ms

Find length of longest substring without repeating characters

Not Started
Sliding Window 1000ms

Find minimum coins needed for amount (canonical coin system)

Not Started
Greedy Algorithms 500ms

Maximize value in knapsack without exceeding weight capacity

Not Started
Dynamic Programming 1000ms

Place N queens on N×N chessboard so no two queens threaten each other

Not Started
Recursion & Backtracking 2000ms