LeetCode Question · May 2020

Microsoft | Phone | Minium swap to get repeated subarray

2 upvotes 1,598 views 6 replies

Question Details

Given an array with around 10w elements, each element is within [0,10w], how to get max subsequense length with same value if you have a opportunity to swap two elements? Samples: 1,1,0,2,3,1,0,1,1,3,4...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays