Technical Test
Candidates write, run and submit code in the browser with nothing to install. It's scored automatically.
- Write and run it in the browser
- Scored on hidden tests
- No setup for the candidate
function twoSum(nums, target) {
const seen = new Map();
for (let i = 0; i < nums.length; i++) {
const need = target - nums[i];
if (seen.has(need))
return [seen.get(need), i];
seen.set(nums[i], i);
}
}Sample · illustrative







































