Plz it shows run error other in other two cases it works and shows success
@nmoudgil_be19 you simply need to take a test input and while(testβ) run your code by making a simple 1D array,taking a 2D array like this is a bad practice cause for bigger size of n making a 2d array of that much size will cause run error.
it worked with 2 d array, but i will keep that in mind
thanks
1 Like