Amazon Interview Question
SDE-3sCountry: United States
Need some more clarification on qn. Like
1. Is the start position of iteration is always start of the channel?
2. Is there any requirement like after reaching the max channel no. it will come to the start of channel no?
We can apply simple algm for resolving this:
1. find the min and max of the channel no's present in the array.
2. Get the start position,
3. if it is always start of the channel means, the answer will be max value of channel.
- NoOne May 18, 2020