Perf testcase 4 is failing

I tried both bfs and dfs approach. but this testcase always fails.

1 Like

if you passing vec1 by value in any function then pass it by reference.

Were you able to resolve this?

Yes. Issue resolved.

Closing this topic as your issue has been resolved by the community. If not Kindly un-mark the accepted solution to re-open the topic or feel free to create a new topic and post a link to this topic as a reference.