In this article:
Java
Header
Place your imports in here.
Body
Define your class and functions here.
Footer
Define your main class, main method and scanner here, from the scanner you will be able to get the inputted values from test cases.
PHP
Header
You must define <?php here.
Body
Define your functions and class here. You’re also able to define a function and no class.
Footer
Place your fscanf here, this is to read inputs from the test cases. This is also where you can call the functions.
Python
Header
For basic functionality, this can be left blank.
Body
Define your functions or classes.
Footer
Capture the input data by using input(), from this you’re able to manipulate it any way you want.
C++
Header
This is where you would put your include statements and the namespace.
Body
You will need to define the class and the functions.
Footer
Define your main function, you will then need the capture the input and use it accordingly as shown below.
C#
Header
Body
Footer
The body of the Main
method will contain the candidate’s code. Add code to {}
that should be executed.
Ruby
Header
Like python you don’t need anything here for basic usage.
Body
Define your function and its functionality here.
Footer
Define gets to receive input and then you’re able to use the test data.
Nodejs
Header
For basic functionality leave this blank.
Body
Define your functions here.
Footer
Process the test input information, from once completed execute your desired function.
Go
Header
Body
Footer
C
Header
Body
Footer