Create a coding challenges (LeetLabs). 

You can create a coding test that allows your learners to write, test, and debug code in a practical setting.

  • To create a coding test, Navigate to the products and click the Code option.

    Crea code
  • Now, click the Create button.

    Crea code (1)
  • Here, enter the test's name, description, and choose a preferred language.

    Crea code (2)
  • Then, click the Create button.

    Crea code (3)
After you've created the code test, you need to set up the below steps.
  1. Instructions
  2. Problem statement
  3. Test Cases
  4. Hints
  5. Solutions
  6. Advanced Options
  • Here, provide detailed instructions for resolving the code task, then click the Save button.

    Crea code (4)
  • Then go to the problem statement step. Enter a detailed description of the code problem here. 

    Crea code (5)
  • Then Enter the Initial Snippets, and click the Save button.

    Crea code (6)
  • Then select the Test Cases step. To add test cases for this coding problem, click the Add Test Case button.

    Crea code (7)
  • Enter the test case's title, input, and output.

    Crea code (8)
  • Then, select the visibility option and write a message for the test case pass, fail, and description.
  • If you choose the visible option, learners can view the test case while taking tests. Otherwise, they cannot see the test case while coding. The test cases will be executed only after the challenge submission. You can only make three test cases visible.
  • Once you have completed this page, click the Save button.

    Crea code (9)
  • Then click on the Hints Step. Click the Add Hints button to guide your learners.

    Crea code (10)
  • Enter the title and hint here. Then, click the Save button.

    Crea code (11)

You can add up to ten test cases and five hints.

  • Then, select the Solution step and enter the solution or resource for the problem statement. Then, click the Save button.

    Crea code (12)
  • Now, proceed to the Advanced Options stage. Here, you can set the marks, difficulty level, and when the hints will appear.
  • Once you've configured these settings, click the Save button.

    Crea code (13)
  • You have now built the coding test for your students. To ensure that everything is working properly, click the preview button.

    Crea code (14)
  • Now you can see the coding environment from the learner's point of view.

      code cor

    Crea code (15)