mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-06-18 20:02:55 +02:00
First commit syntax checker
This commit is contained in:
1 parent
5d1c2e0dfd
commit
051fea2c9b
9 files changed
+325
-8
No files matched your search
@@ -2,9 +2,10 @@
|
||||
|
||||
import random
|
||||
|
||||
rand_num_li = sorted([random.randint(1, 50) for iter in range(10)])
|
||||
rand_num_li = sorted([random.randint(1, 50) for _ in range(10)])
|
||||
target = random.randint(1, 50)
|
||||
|
||||
|
||||
def binary_search(li, le, ri, target):
|
||||
if le <= ri:
|
||||
mid = ri + le // 2
|
||||
|
||||
Reference in new issue
Block a user