0

Linked list

How I can do dynamic Linked list find max and min number ?

12th Nov 2019, 2:14 AM
batool
batool - avatar
1 Resposta
0
If you want to connect lists into one list, simply concatenate them: a = [1, 2, 3] b = [4, 5, 6] c = a + b print(c) # [1, 2, 3, 4, 5, 6] Or if you want to find maximum or minimum number from a list, use built-in max() and min(): x = [8, 4, 9, 3, 5] print(max(x)) # 9 print(min(x)) # 3 I think I didn't get your question correctly
12th Nov 2019, 2:42 AM
Asman-H
Asman-H - avatar