Two Sum

Asked at eBay · Coding Questions · Difficulty: Easy

Given an integer array `nums` and an integer `target`, find two elements at different indices such that their sum equals `target`. Return the two indices. The answer may be returned in any order.

Loading the problem…