← All problemsSign in

Dost Dost Na Raha

# Dost Dost Na Raha Ramesh recently got a promotion and decided to have a party. He wants to invite his childhood classmates. He had N classmates and a lot of them were friends with each other. There used to be M1 friendship relations. However, in time and due to some circumstances, some of them became enemies. A total of M2 enemy relations are formed. Since he was the host he doesn’t want any nui

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start