Перейти к содержимому

167. Two Sum II - Input Array Is Sorted

PRACTICAL WORLD

0:00 / 0:00

167. Two Sum II - Input Array Is Sorted

2 просмотра · 6 дн. назад
PRACTICAL WORLD
139 подписчиков
2 просмотра · 6 дн. назад
167. Two Sum II - Input Array Is Sorted Solved Medium Topics premium lock icon Companies You are given a 1-indexed array of integers numbers that is already sorted in non-decreasing order. Return the indices of the two numbers index1 and index2 as an integer array [index1, index2] of length 2. The tests are generated such that there is exactly one solution. You may not use the same element twice. Your solution must use only constant extra space.