arrow_back Back to Challenges

#167 Two Sum II - Input Array Is Sorted

Medium Acceptance 0%
description

Problem Description

Given a 1-indexed array of integers `numbers` that is already sorted in non-decreasing order, find two numbers such that they add up to a specific `target` number.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Arrays Binary Search Two Pointers

Hiring Companies

Bloomberg Google
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude