here’s my code https://ide.codingblocks.com/s/247328
Failing one test case - WA
Your code is not working for test cases when both m and n have big values eg m=1000 and n=1000:
1000 1000
so refer to the code: https://ide.codingblocks.com/s/247347
@Mosina_Ashraf i made the vectors global variables https://ide.codingblocks.com/s/247361 but it is still failing that test case
@Mosina_Ashraf tried dynamic memory allocation as well https://ide.codingblocks.com/s/247371 still not passing
![]()
if this returns false then print -1. u missed this case in ur code.
1 Like