
Choose and prepare the source
For a draft, supply the supported source material and the challenge details requested by the form. For a pack, choose the file through the install control.
ExampleDraft a function that counts occurrences of a target. State the input types, output, and expected behavior on an empty array.
Review the draft and validate
Inspect the imported prompt, starter contract, examples, and tests where available. Correct validation errors before confirming.
ExampleFor solve(items, target), check that the test arguments actually contain both values and that the expected result is a number.
Find and test the imported content
Confirm the import, then search Library for the title or use the relevant source or pack filter. Open the challenge and verify a visible test.
ExampleSearch for Count Occurrences. If it is missing, clear filters and return to Content & Import to check whether validation or installation completed.
Check your work
The imported challenge is discoverable and a visible case matches the contract you reviewed.
Try it yourself
Before confirming an import, try a draft for a function that counts occurrences and give it a case with a missing expected result. Use the review screen to locate the incomplete case, then fix it.
- What to look for
- The corrected case includes arguments and an expected count. For solve([], 2), enter the empty array and the target as separate arguments and use 0 as the expected result.