solulubeta
Sign in
NeetCode 150 / Two Pointers
02.02 · Problem

Two Sum II — Input Array Is Sorted

Medium Two pointers on a sorted array 1 video LC 167 Pro

This problem is part of solulu Pro

numbers is sorted in non-decreasing order. Find the two numbers that add up to target and return their positions as [index1, index2] using 1-based indices, with index1 < index2. Exactly one solution exists, and you must…

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 11 of 150 · updated 2026-10-12