Although, my solution is accepted for similar question on leetcode, on codingBlocks my solution is failing 1 test-case out of 3 test-cases
Where is the problem in my code ?
Although, my solution is accepted for similar question on leetcode, on codingBlocks my solution is failing 1 test-case out of 3 test-cases
Where is the problem in my code ?
hello @maheshghamand
your logic is correct.
here for this problem m[i][j]=1 means i is friend of j only (ie i-> j , no other edge j->i).
All test cases are passing now
Thanks.
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.