We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I have a doubt here. I was trying to use a relatively simpler approach but its giving me wrong answer.I simply iterated through all the elements and considering each of these previously unvisited elements as starting point i looked for elements that could fullfil the given condition. Here is my solution.
Problem solving
You are viewing a single comment's thread. Return to all comments →
I have a doubt here. I was trying to use a relatively simpler approach but its giving me wrong answer.I simply iterated through all the elements and considering each of these previously unvisited elements as starting point i looked for elements that could fullfil the given condition. Here is my solution.
please tell me where i have gone wrong