B. Max and Mex | Codeforces problem solve | Bangla

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

while finding mex you have to increase the small value every time when arr[i] == i, else you won't find small when small is greater then the max value of the array

shoaibzihad