Each element of an array of non-negative integers may be lowered to any smaller non-negative value. What is the largest MEX the array can reach?
Unlock detailed company stats for this questionUpgrade
Given an array of non-negative integers where each element may be lowered to any smaller non-negative value (or kept), what is the largest MEX (smallest missing non-negative integer) the array can reach?
Community answers
No answers contributed by the community yet.
Related questions
You may change any three elements of an integer array to any values. What is the smallest possible difference between the largest and smallest element afterwards?Can Jump - Given an array of non-negative integers, you're initially at the first index. Each element represents your maximum jump length at that position. Determine if you can reach the last index.Given an array of integers and an integer k, find the kth largest element in the array.Related courses

Course
