Overview
HackerRank for Work enables customers to create their questions and clone existing questions. Cloning an existing question breaks all ties of the question with the original. A cloned question, albeit a replica of the original, has a separate Question ID, and changes made to the original question will not reflect in the clone and vice versa. Cloning questions is instrumental when you want to use different question versions with modifications in different contexts. This article will walk you through the steps in cloning a question.
Points to Remember
- All questions created by you and anyone in your company are available under 'My Company Questions' in your HackerRank for Work account.
- HackerRank also has a vast and rich library of questions, available under 'HackerRank Questions.'
- Questions under both categories can be cloned.
Cloning HackerRank Questions
- Navigate to the Library tab and then select the HackerRank Questions.
- Next, hover your mouse right next to the question you want to clone. Then click on the three dots and select the Clone option from the pop-up.
- Confirm cloning the question, in spite of non-transferrable periodic updates, by clicking on the OK button as shown below.
- After confirming the cloning, you will see a new window asking you to finalize the name of the cloned question. Provide a name for the cloned question and click on the OK button.
- Upon saving the cloned question, the cloned question becomes available for you to use under 'My Company Questions' in your HackerRank for Work account.
- You can also clone questions by clicking on the checkbox to the left of the question name in the library list view, as shown below.
- Another option is to clone questions in the question view pane, which becomes visible when you open a question from the library. Click on the three-dot menu and select Clone from the pop-up window at the far right.
Note: HackerRank Library questions are cloned without the solution uploaded to the question, i.e. when candidates try their solutions with custom input, they won't see an 'expected output' unless a solution to the question is uploaded in the question creation flow. Read more about candidates using expected output here.
Cloning Your Company Questions
- First, click on the Library tab and then select the My Company Questions as shown below,
- Next, hover your mouse next to the question you want to clone. Click on the three-dot menu and select the Clone option as shown below,
- After clicking on the Clone option, you will see a new window asking you to edit the name of the cloned question as shown below,
- After clicking on the OK button, you can edit the problem statement, description, and test cases. Finally, the cloned question will be saved with that name.
- Your Company questions can be cloned in a similar way as cloning HackerRank questions.