Code Judge

Write code in the browser, run it against real test cases, and get an instant verdict — Accepted, Wrong Answer, Runtime Error, or Time Limit Exceeded. Solutions are saved in your browser so you can pick up where you left off.

Each problem reads from stdin and writes to stdout (Codeforces-style). Pick a problem below to start.

Problems

Problem Difficulty Topic
Two Sum 🟢 Easy Arrays + Hashing
Valid Parentheses 🟢 Easy Stack
Maximum Subarray 🟡 Medium Dynamic Programming

More problems are added regularly. Want the worked solutions instead? Browse the DSA solutions.

How it works

  1. Choose your language (Python, Java, or C++).
  2. Read the input format and write your solution — read from stdin, print to stdout.
  3. Run samples checks your code against the visible examples.
  4. Submit runs every test case (including hidden ones) and returns a verdict.

Your code executes in a sandbox, so infinite loops are stopped by a time limit and crashes are reported as Runtime Errors.

Discussion

Newest first
You