FresherFresher (0–1 yrs)CodingPythonAmazonGoogleMicrosoft
Two Sum
Given an array of integers nums and an integer target, return indices of the two numbers that add up to target. Assume exactly one solution; you may not reuse the same element.
Answers use simple, clear English.
Time: O(n)Space: O(n)
Confidence
#array#hashmap#blind75