This topic is about the additional options that you can see while creating a programming question. Before this, you need to create and save a programming question. For more information, see Adding programming problems to the custom library.
After you save the question, you will see these additional options:
You can use this field to enter the approach/answers that can be used to solve the problem. This will not be visible to the candidate. This is just to save information about the solution to the problem.
Sample Input (.txt)
This is to drive the candidate in the correct direction in terms of logic. This is one of the input cases that is exposed to the candidate. It is used to the run their code when they click Compile and Test.
Important: The sample input file must be in .txt format.
Sample Output (.txt)
After a candidate writes the solution to a problem, the solution must be compiled, tested, and then submitted. A sample output file comprises the output conditions that a solution must meet to be compiled successfully.
Important: The sample output file must be in .txt format.
This is a logical explanation of how the sample output was derived from the sample input. This explanation is visible to the candidate.
You can choose the languages that you want to allow the candidate to write the solution in.
Edit Code checker limits
You can set the time limit within which the code must run on all the input files. The time can be set to a maximum of 10 seconds.
The advanced code-checker settings section allows you to specify the following:
- Time limit maximum time a candidate code can take to execute for individual test cases. For example, 5.0 seconds.
- Memory limit is the maximum memory the candidate code can take while execution (i.e. memory of a candidate’s code). For example, 512 MB
- Maximum code size for the submitted code (i.e. candidate’s code). For example, 1024 KB. This is the maximum size of the code that can be uploaded by the candidate.
Input and output files refer to test cases that are used to evaluate a candidate’s code. You can set marks for each input and output file that you upload. For more information about how code submissions are evaluated, see HackerEarth judge.
Input and output files may also be uploaded in bulk. For more information, see Uploading multiple test cases.
Choose the section in which you want to save the question that you are creating.
Add tags that are relevant to the question. E.g. Basic Programming, Data Structure
You can add sample code snippets to a programming question. These are pre-loaded in the code editor for candidates to use in the test. For more information, see Code snippets.