Skip to main content
CodePlanet Docs

Solving Problems

The problem-solving workflow

Master the art of submitting solutions.

Problem Page Layout

When you open a problem, you'll see:

  • Left Panel — Problem description, examples, constraints
  • Right Panel — Code editor
  • Bottom — Console/output area

Understanding the Problem

  1. Read the description carefully — Understand what's being asked
  2. Check examples — Work through them manually
  3. Note constraints — Size limits affect your approach
  4. Look for edge cases — Empty inputs, single elements, etc.

Writing Your Solution

Choose Your Language

Supported languages:

  • JavaScript
  • Python
  • C++
  • Java
  • Go
  • Rust

Code Editor Features

FeatureShortcut
Run codeCtrl+Enter
SubmitCtrl+Shift+Enter
Format codeAlt+Shift+F
Toggle console`Ctrl+``

Testing Your Code

Custom Test Cases

  1. Click Custom Input
  2. Enter your test case
  3. Click Run
  4. Check output against expected

Run vs Submit

ActionWhat it does
RunTests against sample cases only
SubmitTests against all hidden cases

Submission Verdicts

VerdictMeaning
✅ AcceptedAll tests passed!
❌ Wrong AnswerOutput doesn't match expected
⏱️ Time Limit ExceededCode too slow
💥 Runtime ErrorCode crashed
🔴 Compilation ErrorSyntax error
📦 Memory Limit ExceededUsing too much memory

After Solving

  • View solutions — See how others solved it
  • Read editorial — Official explanation
  • Mark for review — Revisit later
  • Share — Show off your solve!

Tips for Success

  1. Start with brute force — Get it working first
  2. Optimize later — Only if needed
  3. Test edge cases — Before submitting
  4. Read error messages — They're helpful!

Next: Difficulty Levels

On this page