Practice
Every problem here runs against a real compiler, not a guess.
Actually compiled and executed — not pattern-matched against expected output — in JavaScript, TypeScript, Python, C#, Java, Go, Rust and C++, plus live SQL queries against a real database. If it would fail in a real interview, it fails here too. Looking for front-end/CSS practice instead of algorithms? Try UI Challenges.
77 of 77
MediumcpprustgojavatypescriptJS
Longest Substring Without Repeating Characters
Strings · Sliding Window
MediumcpprustgojavatypescriptJS
Kth Largest Element in an Array
Arrays · Sorting · Heaps & Priority Queues
MediumcpprustgojavatypescriptJSPYC#
Number of Connected Components in an Undirected Graph
Graphs · Union-Find
MediumcpprustgojavatypescriptJSPYC#
Top K Frequent Elements
Arrays · Hash Table · Heaps & Priority Queues