plzzz… check the code i am getting Segmentation fault.
Question is present inside the Code.
Number of Islands(Segmentation Fault)
// make size of grid as global variable so that u do not need to pass as parameters
// pass current index not 0,0
// use for loop
// foreach will be a problem because current index needs to be used
updated code
mam, how do i use this concept to find max area of Island. take a look of my code
Thank u mam … It worked and i resolve Max Area Island problem tooo…
1 Like
Good to know that you could solve it by your self
1 Like