Atlassian | 15th October | Online Assessments
Atlassian · Question · Posted Oct 2022
Question 1 <problem>108</problem> Given an array containing n non negative integers and an element x, In one operation, x can be added to or subtracted from any element of the array. MEX of an array is defined as the smallest non negative integer which is not present in the array. for example, the MEX of [0,1,1,3] is 2, and the MEX of [1,2,4] is 0 Find the maximum possible MEX of the array that can be achieved by doing the ...
The full answer & interview discussion are available to premium members.
Log in Create a free account