Use AI-powered coding challenges to find the best developers. Skip the resume screening and see actual coding skills in action.
// Two Sum Problem
// Given an array of integers and a target sum,
// return indices of two numbers that add up to target
function twoSum(nums, target) {
// Your code here
const map = new Map();
for (let i = 0; i < nums.length; i++) {
const complement = target - nums[i];
if (map.has(complement)) {
return [map.get(complement), i];
}
map.set(nums[i], i);
}
return [];
}
// Test cases
console.log(twoSum([2, 7, 11, 15], 9)); // [0, 1]
console.log(twoSum([3, 2, 4], 6)); // [1, 2]
Hire with confidence using our comprehensive assessment platform
Advanced AI detects copied code and ensures authentic solutions from candidates.
Create tailored coding challenges that match your specific role requirements.
Compare candidates against industry standards and your team's performance.
Showcase your coding skills to leading technology companies. Our platform connects talented developers with opportunities at scale.