I am pushing all the neighbors in a vector and expanding the seed.
Here is my code :
I have referred this code :
I am pushing all the neighbors in a vector and expanding the seed.
Here is my code :
I have referred this code :
Which Test Case are you failing?
Think of a corner case that you might have left since you are passing rest of all test cases.
4th Test Case is failing, I tried debugging couldnt find the corner case.
Your code seems right. Maybe there’s some issue in test case.
You may move forward with other questions for now.I’ll try to debug your code.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.