Original code:
/** * @param {number[]} numbers The array of numbers. * @param {number} sum The required target sum. * @return {number[]} An array of 2 indices. The indices of the two elements whose sum is equal to sum. */ function findTwoSum(numbers, sum) { // Your code goes here } const indices = findTwoSum([ 3, 1, 5, 7, 5, 9 ], 10); console.log(indices);
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.