A snippet is a programming term for a small region of re-usable source code, machine code, or text. Ordinarily, these are formally defined operative units to incorporate into larger programming modules.
Important: Currently, HackerEarth Recruit supports code snippets in the following languages:
- Java 8
- Python 3
You can generate code snippets automatically and manually. This will allow candidates to focus on writing the logic required for the program to run.
By using the code-snippet generation feature, you can generate the input and output automatically. This is known as ‘skeleton code’. The skeleton code will be visible to the candidate who can focus on writing the logic that will ensure that the code runs successfully.
You can automatically generate your code snippets for the following types of questions:
You can manually generate your code snippets for the following types of questions:
You cannot generate code snippets for the following types of questions:
- File upload
- Machine Learning
- Java Project
You will be warned in the following scenarios:
- Editing code snippets of a question that they are using from the HackerEarth library
- Generating the code snippet after the test has started
- Using a language that is not supported for code-snippet generation
- If a code snippet that is generated overrides an existing manual code snippet, then you will be given an option to choose which code snippet to retain.