Why get WA for COG2002

@everule1 @gourab_santu Thank you so much guys. A got an AC after correct my solution.

:blush:

Wow! Then I didn’t heard of python! Is python a programming language?

lol :rofl: :sweat_smile:

I have a doubt after considering your approach.
The problem statement mentions that a team is formed out of three CP who are friends.
But it is also mentioned in the statement that a person is friend with 4 members, 2 of whom are in the right and 2 in the left.
Eg : [A,B,C,D,E,F,G,H]
Here, C is friend with {A,B,D,E}.But, can we say that they all are friends with each other? Absolutely NO!
**Hence selecting **
[quote=“cubefreak777, post:2, topic:56895”]
three of its elements such that one is selected out of 2 elements to the left and one out of the 2 elements standing to the right of current element of analysis
[/quote] will be a wrong approach, because, E is not a friend of {A,B}.
Please correct me if i’m wrong.