Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jwasham/practice-python
/ is_sorted
Function
is_sorted
merge_sort/main.py:4–14 ·
view source on GitHub ↗
(numbers)
Source
from the content-addressed store, hash-verified
2
3
4
def
is_sorted(numbers):
5
last_num = float(
"-inf"
)
6
in_order = True
7
8
for
n in numbers:
9
if
n < last_num:
10
in_order = False
11
break
12
last_num = n
13
14
return
in_order
15
16
17
def
contain_same_ints(arr1, arr2):
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected