DIY: Random Pick Index

Solve the interview question "Random Pick Index" yourself in this lesson.

We'll cover the following...

Problem statement

In this challenge, you are given an array of integers with possible duplicate values. Your task is to output a randomly picked index of a given target number present in the array. The solution ...