Code Editor

The integrated code editor provides just the right tools to prepare and test your solution.

Begin by choosing the programming language from the dropdown. You can refer to the list of programming languages that Toph supports and then prepare your solution in the editor below it. The editor supports undo history, search and replace, and more through the toolbar buttons and typical keyboard shortcuts.

You can test your solution using the Compile, Test, and Custom buttons near the bottom.

The Compile button compiles the code you have written. This option will be available only when the programming language requires a compilation stage.

The Test button runs your code against the given sample test cases.

The Custom button allows you to test your solution against your own custom inputs.

Once you are satisfied with your code, you may use the Submit button to submit your solution.