So recently I've been going through some of the problems here on LeetCode, however, I realized that they use a weird format. Here's one example of the expected output:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1].Notice how the problem wants two values of an array returned. However, I have no clue how to do that...
Any advice?