Problem Description

Task: array is sorted. Return indices of two numbers that sum to target, else [-1,-1]. Use two pointers.

Input Format

Java method

Output Format

Return value

Constraints

Return 0-based indices.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next