C
de
S
pace
Explore
Log In
Explore
Sign Up
Log In
sageweber455
22.05.2026 12:00
0
Caesar cipher
Clean and minimal
views.py
def flatten(lst): result = [] for item in lst: if isinstance(item, list): result.extend(flatten(item)) else: result.append(item) return result print(flatten([1, [2, [3, 4]], 5]))
solver.py
def bubble_sort(arr): n = len(arr) for i in range(n): for j in range(0, n-i-1): if arr[j] > arr[j+1]: arr[j], arr[j+1] = arr[j+1], arr[j] return arr print(bubble_sort([5, 3, 8, 1, 2]))
Idle
Try It
Clear
Log in
to leave a comment
Are you sure you want to delete this post?
Delete
Cancel