DIY: Random Pick Index
Explore how to solve the random pick index problem by designing memory-efficient functions to select an index randomly for a target value in an integer array. This lesson prepares you for Amazon-like interview questions by practicing data structure manipulation and algorithmic thinking.
We'll cover the following...
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 should be memory ...