Chargement...
Chargement...
Train under authentic FAANG / Microsoft pressure. Run custom inputs, inspect Big-O curves, and receive official hiring verdicts.
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. Return their indices as `[index1, index2]`. You must use only O(1) auxiliary extra memory.
[[2,7,11,15], 9][1,2]