mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
psf/black code formatting (#1277)
This commit is contained in:

committed by
Christian Clauss

parent
07f04a2e55
commit
9eac17a408
@ -4,13 +4,14 @@ def printNGE(arr):
|
||||
for i in range(0, len(arr), 1):
|
||||
|
||||
next = -1
|
||||
for j in range(i+1, len(arr), 1):
|
||||
for j in range(i + 1, len(arr), 1):
|
||||
if arr[i] < arr[j]:
|
||||
next = arr[j]
|
||||
break
|
||||
|
||||
print(str(arr[i]) + " -- " + str(next))
|
||||
|
||||
|
||||
# Driver program to test above function
|
||||
arr = [11,13,21,3]
|
||||
arr = [11, 13, 21, 3]
|
||||
printNGE(arr)
|
||||
|
Reference in New Issue
Block a user