Question: slove with python 3 def maximum_num_friends(network): '''(2Dlist)->int Given a 2D-list for friendship network, returns the maximum number of friends any user in the network has.
slove with python 3
def maximum_num_friends(network): '''(2Dlist)->int Given a 2D-list for friendship network, returns the maximum number of friends any user in the network has. ''' # YOUR CODE GOES HERE pass
run:
>>> maximum_num_friends(net1)
5
>>> maximum_num_friends(net2)
9
>>> maximum_num_friends(net3)
9
>>> maximum_num_friends(net4)
347
note net1.txt contains: 100 10 20 31 41 61 71 92 32 62 82 93 83 94 64 74 58 96 87 8
netl.tt-Notepad File Edit Format View Help 1 1 2 31 41 61 71 92 32 62 82 93 83 94 64 74 85 96 87 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
