I think this method will not work in the above question because the length of the string was very high(10^5). We can 't take modulo at the end, we need to somehow calculate the modulo during the process of calculating the maximum possible number.
same… only 1 testcase passed… i sat there for an hour debugging, i even rewrote the code in python …but no luck… i guess some issue with the test perhaps… its not possible otherwise or maybe i missed something who knows
Yeah same
after that even i tried the brute approach by getting all the subarrays then changing the number in that position and checking for max but no luck
Same for me. After not passing all cases I also coded in python but get nothing . I believe there is
probably some problem with the testcases . I also mailed them about this. Now waiting for their reply.