Things I learnt: When there is mapping to be done, think about a DICTIONARY Here, we have to use the VALUES of the array, e.g. [1, 2, 3, 4] Figure out which numbers add up to 6 = 2 + 4 But we want to output the INDEX of the array So we need to m...
Markdown supported · ⌘↵ to post
No responses yet.