Two Sum at Yandex
Easy57.1% acceptance
This problem has 75.0% frequency at Yandex.
Problem Description
Given an array of integers `nums` and an integer `target`, return _indices of the two numbers such that they add up to`target`_. You may assume that each input would have **_exactly_ one solution**, and you may not use the _same_ element twice. You can return the answer in any order.
Read full problem and hintsTopics
Also asked at 128 companies
More Yandex Questions
Longest Subarray of 1's After Deleting One ElementMediumLongest Substring Without Repeating CharactersMediumSummary RangesEasyFind K Closest ElementsMediumMaximize Distance to Closest PersonMedium
View all Yandex questions