DSA compiler
Write and run C, C++, Python, Java, or JavaScript. Test an algorithm with your own input and inspect its output.
To try binary search, choose I/O and press Run. The starter looks for 23 and prints index 3. Try 22 in STDIN to see a missing target, or replace the starter with your own program.
OneCompiler processes your code and input. To save an input-only edit, choose I/O and press Run. Drafts save in this browser when storage is available.