Home / Docs / Language Switcher
Feature docs

Language Switcher

One-click idiomatic ports, complexity re-verified.

What it does

Port any solution across Python, Java, C++, JavaScript, TypeScript, Go, and Rust in one click. Ports are idiomatic — Java gets proper generics, Rust gets ownership-safe borrows, Go gets channels where they fit — not line-by-line transliterations. Complexity is re-verified per language, because a port can change constant factors and occasionally the asymptotics.

Configuration

  • {'label': 'From', 'kind': 'select', 'options': ['Python', 'Java', 'C++', 'JavaScript', 'TypeScript', 'Go', 'Rust']}
  • {'label': 'To', 'kind': 'select', 'options': ['Python', 'Java', 'C++', 'JavaScript', 'TypeScript', 'Go', 'Rust']}
  • {'label': 'Re-verify complexity', 'kind': 'toggle'}

Why it's better

Incumbents generate in one language per solve; we port idiomatically and re-verify complexity per language, which matters when an interviewer says 'now do it in Java.'

Telemetry

  • Ports generated
  • Languages used
  • Complexity changes flagged

Try it live

Open Language Switcher in the workspace →