What the Boilerplate Actually Does
A candidate never sees a blank file. They see your boilerplate: starter code that already reads their input and prints their output, with a single function left for them to fill in. Their job is to write only the logic inside that function; your boilerplate handles everything around it.Example 1: Single-Line Input
Problem statement: Given a string, return its first character. Submittingequip should return e.
A test case for this problem is just that pair:
The boilerplate reads one line, calls the candidate’s function, and prints the result:
Example 2: Multi-Line Input
More complex problems need several pieces of input. For example: Given an array and an index, return the value at that index. The input arrives as three lines:3.
The boilerplate now has to read three lines and assemble them into structured data before calling the candidate’s function:
Related Resources
- Creating a Custom Programming Test - Where these fields live in the builder, and how test cases and languages work
- Supported Programming Languages - Every language available for a custom programming test
- Issues with Custom Coding Challenges - Common setup mistakes, including boilerplate and formatting errors
