Community-driven challenges - No solutions shown!
These are interesting problems with no solutions shown. Submit your own solutions or problems to contribute!
138 challenges available
A city's skyline is formed by the outer contours of silhouettes formed by all the buildings. Given the locations and hei...
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Ca...
Implement an autocomplete system. For each query, return a list of the top 3 most recent and frequent search sentences....
Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area....
Given an integer array nums, handle multiple queries of type: Update the value of an element in nums. Calculate the sum ...
Given an integer array nums and two integers lower and upper, return the number of range sums that lie in [lower, upper]...
Given an integer array nums, handle multiple queries of the following types: Update the value of an element in nums....
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time....
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class....
The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value and...
Given a string containing just the characters ( and ), find the length of the longest valid (well-formed) parentheses su...
Implement a regular expression matcher that supports . (matches any single character) and * (matches zero or more of the...
Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every char...
Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a...
A message containing letters from A-Z can be encoded into numbers using a mapping. A-Z is mapped to 1-26. However, this ...
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses....
You are given a string s and an array of strings words. All the strings of words are of the same length. Return all star...
Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings ...
Given an array words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fu...
You are given a string s. You can convert s to a palindrome by adding characters in front of it....
You are given an integer array prices where prices[i] is the price of a given stock on the ith day, and an integer k....
In a country popular for train travels, you have planned some train traveling one year in advance. The days of the year ...
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct ...
Given an m x n integers matrix, return the length of the longest increasing path in matrix. From each cell, you can eith...
There is a group of n members, and a list of some crimes they could commit. The ith crime generates a profit[i] and requ...
Given a string s, return the number of distinct subsequences of s where all the characters of the subsequence are unique...
Given a circular integer array nums of length n, return the maximum sum of a non-empty subarray of nums....
The alternating sum of a sequence is defined as the sum of elements at even indices minus the sum of elements at odd ind...
You are given a 0-indexed m x n integer matrix grid consisting of positive integers. You can move in four directions: up...
Alice and Bob take turns playing a game, with Alice starting first. There are n stones in a pile, and the goal of the ga...
There are n houses and k colors. You need to paint all the houses such that no two adjacent houses have the same color....
Given an array of strings words (without duplicates), return all the concatenated words in the given list of words....
Given an integer array nums, return the number of longest increasing subsequences....
Given a string s, return the number of distinct non-empty subsequences of s. Since the answer may be very large, return ...
You are given a list of airline tickets where tickets[i] = [fromi, toi] represent a ticket from airport fromi to airport...
Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all paths from node 0 to node n - 1 and re...
Given a 2D grid of empty land and island (0 and 1), dynamically add islands one by one and count total connected compone...
You are given an undirected weighted graph of n nodes (0-indexed), represented by an edge list where edges[i] = [a, b] i...
You are given a network of n nodes labeled from 1 to n. You are also given times, a list of travel times as directed edg...
A tree is an undirected graph in which any two nodes are connected by exactly one path. In other words, any connected gr...
Given an n x n binary matrix grid, return the length of the shortest clear path in the matrix. If there is no clear path...
You are given a string s and two integers x and y. You can perform two types of operations any number of times....
There are n cities numbered from 0 to n - 1 and n - 1 roads such that there is only one way to travel between two differ...
There is an undirected graph with n nodes where each node is labeled from 1 to n. You are given a 2D array graph where g...
There is an infrastructure of n cities with some number of roads connecting these cities. Each connected pair of cities ...
Given a list of accounts where each element accounts[i] is a list of strings, where the first element accounts[i][0] is ...
You are given an integer n which indicates that there are n courses labeled from 1 to n. You are also given an array rel...
You are given an n x n integer matrix grid where you are located at the top-left corner (0, 0) and must reach the bottom...
You are given an array points representing integer coordinates of some points on a 2D-plane, where points[i] = [xi, yi]....
There is a new alien language which uses the latin alphabet. You are given a list of words written in this alien languag...
Design a system that automatically detects deployment issues and triggers rollbacks....
Implement a zero-knowledge proof system that allows proving knowledge of a secret without revealing it....
Build a tool that helps debug eventual consistency issues by visualizing replica states and detecting divergence....
Build a recommendation system supporting collaborative filtering, content-based, and hybrid approaches....
Design a system that automatically tunes database parameters based on workload analysis....
Build an interactive 3D visualization of git repository history showing branches, merges, and contribution patterns....
Design a chaos engineering platform that safely introduces failures to test system resilience....
Design a multi-tenant SaaS architecture supporting data isolation, custom domains, and per-tenant scaling....
Build a tool that automatically checks websites for accessibility issues and suggests fixes....
Design a distributed tracing system like Jaeger that tracks requests across microservices....
Build a tool that automatically transplants features from one codebase to another by understanding code structure....
Build a tool that analyzes browser extensions for security risks and privacy concerns....
Build a code completion system that understands context and suggests entire code blocks, not just single tokens....
Design a system that detects dangerous feedback loops in recommendation systems that can lead to filter bubbles....
Build a tool that helps migrate API clients from old versions to new versions automatically....
Build a runtime memory leak detector for JavaScript applications that identifies leak sources....
Design strategies and tools to minimize serverless cold start times....
Build a system that continuously monitors data quality across pipelines and detects anomalies....
Design a system for syncing application state across web, mobile, and desktop with offline support....
Build a system that generates documentation from code, including diagrams and examples....
Design a statistical engine for A/B test analysis supporting multiple metrics and segment analysis....
Implement a circuit breaker library with configurable thresholds, half-open state, and fallback mechanisms....
Design a GraphQL federation gateway that composes multiple GraphQL services into a unified schema....
Design a system for automatically rotating secrets with zero downtime....
Build a CI tool that enforces performance budgets and fails builds that exceed thresholds....
Build a simulator for event-driven architectures showing event flow, processing, and failure scenarios....
Design a system that analyzes cloud resource usage and suggests cost optimization opportunities....
Design a system for managing idempotency keys to ensure exactly-once processing in distributed systems....
Design a database connection pooler like PgBouncer supporting various pooling modes....
Design a feature store for ML that supports feature versioning, real-time serving, and batch computation....
Design a reliable webhook delivery system with retry logic, delivery guarantees, and monitoring....
Design a schema registry for event-driven systems supporting schema evolution and compatibility checks....
Design a log aggregation system that automatically groups related logs and extracts structured data....
Design an automated canary deployment controller that gradually shifts traffic based on metrics....
Build a time-travel debugger that allows stepping forward and backward through program execution....
Design a distributed ID generator like Twitter Snowflake that generates unique, sortable IDs....
Design a service that masks PII in data exports while preserving referential integrity and data utility....
Build a tool that estimates query costs before execution to prevent expensive queries....
Design a real-time service health dashboard aggregating status from multiple sources....
Hilbert's Grand Hotel has infinitely many rooms, all occupied. A bus with infinitely many new guests arrives. Design an ...
Build a system that automatically generates test cases for functions based on their signatures and documentation....
Design a real-time bidding system for programmatic advertising with sub-100ms response times....
Build a system that extracts structured data from unstructured documents (invoices, contracts, forms)....
Build a simulator for service mesh behaviors (Istio/Envoy) demonstrating traffic routing, retries, and circuit breaking....
Design an analytics system that provides useful insights while preserving individual user privacy using differential pri...
Build a system that generates realistic load tests based on production traffic patterns....
Design a data pipeline orchestrator with dependency management, retry logic, and data quality checks....
Build a tool that automatically audits Solidity smart contracts for common vulnerabilities....
Design a system that automatically responds to production incidents based on runbooks and ML-detected patterns....
Build a tool that visualizes code complexity metrics (cyclomatic, cognitive) as interactive heatmaps over the codebase....
Design a distributed cache invalidation system that maintains consistency across multiple cache layers with minimal late...
Design a system for scheduling shared resources (meeting rooms, equipment, vehicles) with conflict resolution and optimi...
Build an automated code review system that catches bugs, suggests improvements, and enforces style guidelines....
Build an intelligent API fuzzer that discovers vulnerabilities by generating edge-case inputs based on API schemas....
Build a system that converts natural language descriptions into regular expressions....
Design and implement a distributed file system supporting replication, fault tolerance, and consistency....
Design a system that plans database schema migrations minimizing downtime, handling data transformation and rollback sce...
Build a chess engine that not only plays well but explains its moves in human-understandable terms....
Build a vulnerability scanner that analyzes project dependencies, identifies known CVEs, and suggests safe upgrade paths...
Build an interactive playground for genetic algorithms where users can evolve solutions to various problems (TSP, functi...
Build a system that learns normal log patterns and detects anomalies without predefined rules....
Create a procedural world generator for games that creates realistic terrain, biomes, rivers, and cities with consistent...
Simulate Kubernetes scheduling decisions and visualize how pods are placed across nodes with different resource constrai...
Build a real-time speech-to-speech translator that preserves speaker emotion and tone....
Build an intelligent merge conflict resolver that uses code understanding to suggest the best resolution for conflicts....
Design a network intrusion detection system that identifies malicious traffic patterns in real-time using ML....
Build a simple proof assistant that can verify mathematical proofs written in a formal language and suggest proof steps....
Build an AI that generates original music in a specified genre, maintaining musical coherence, rhythm, and emotional ton...
Implement a query optimizer that transforms SQL queries into efficient execution plans using cost-based optimization....
Build a code search engine that understands semantic meaning, not just text matching. "function that sorts array in desc...
Build a system that detects anomalies in multiple correlated time series, distinguishing between point anomalies, contex...
Design a decentralized algorithm for coordinating a swarm of drones to cover a search area optimally while avoiding coll...
Build a tool that automatically discovers and visualizes dependencies between microservices by analyzing network traffic...
Design an adaptive learning system that adjusts difficulty, content, and pacing based on student performance using knowl...
Given a social network graph, find the k most influential users to seed a viral marketing campaign, maximizing expected ...
Build a search engine that can search through encrypted documents without decrypting them (using homomorphic encryption ...
Design a compiler for a visual programming language (node-based like Unreal Blueprints) that compiles to efficient machi...
Given a city's road network and real-time traffic data, optimize traffic light timings to minimize average commute time ...
Build a real-time collaborative whiteboard supporting drawing, shapes, text, and images with infinite canvas, undo/redo,...
Build a plagiarism detection system for code that can identify copied code even after variable renaming, code restructur...
Design a globally distributed rate limiter that maintains accuracy across multiple data centers with network partitions ...
Build a system that converts natural language questions into SQL queries. Handle ambiguous queries by asking clarifying ...
Simulate different blockchain consensus mechanisms (PoW, PoS, DPoS) and compare their performance under various attack s...
Create a maze generator that produces mazes specifically designed to maximize solving time for common algorithms (BFS, D...
Build a quantum circuit simulator supporting basic gates (H, X, Y, Z, CNOT) and measurement. Implement Grover's search a...
Design a smart parking lot system where cars can be automatically repositioned to optimize for: fastest exit time, balan...
Design and implement a visualization tool that demonstrates how Raft consensus protocol handles leader election, log rep...
Given N people with their available time slots across different timezones, find the optimal meeting time that maximizes ...