0
Linked list
How I can do dynamic Linked list find max and min number ?
1 Respuesta
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