← Home Code Sandbox

Code Sandbox

Stack Implementation

Implement a Stack class with push(), pop(), peek(), is_empty(), and size().

Module: Data Structures — Beginner

Python Editor
Output
Click "Run" to execute your code...

Track 1 Challenges

Track 2 Challenges

Sandbox Tips
  • Code runs in an isolated environment with a 10-second timeout
  • Use print() to see output
  • AI evaluation checks correctness, style, and efficiency
  • Try solving challenges without hints first, then check the AI review
  • Each submission earns XP!