Question link: https://www.codechef.com/OCT20B/problems/REPLESX/
Solution Link : https://www.codechef.com/viewsolution/38871067
You missed the upperbound of the number that is to be inserted (in case of multiple presence of the number).
1 Like