Problem impossible and umpassable ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Problem impossible and umpassable )

You are making a social network called X. Connections between the users are stored as a graph. The given code declares an X class with its add_friend() method and creates some connections for 5 users. You need to take a number as input and output the number of connections of the corresponding user.

17th Oct 2022, 7:41 PM
Narek Sargsyan ʟͥᎥᴏͣɴͫ
Narek Sargsyan ʟͥᎥᴏͣɴͫ - avatar
1 Answer
0
what have you tried?
17th Oct 2022, 8:00 PM
Apollo-Roboto
Apollo-Roboto - avatar