JavaScript is required for SkillDojo AI to work properly. Please enable JavaScript and refresh the page.
Coding Challenge · BEGINNER
Given a sorted array of integers and a target sum, find the first pair of numbers that add up to the target sum and return their indices in the array. If no such pair exists, return -1, -1.