Skip to content

Commit

Permalink
identation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPilla committed Apr 28, 2023
1 parent f864cf0 commit dc41a85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__pycache__/
.idea/
.vscode
.vscode
venv/
14 changes: 7 additions & 7 deletions src/algorithms/timSort.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ def calculate_min_run(n):
Returns:
int: The minimum run length.
"""
last_bit = 0
RUN_LEN = 32

while n >= RUN_LEN:
last_bit |= n & 1
n >>= 1
return n + last_bit
last_bit = 0
RUN_LEN = 32
while n >= RUN_LEN:
last_bit |= n & 1
n >>= 1
return n + last_bit

def binaryinsertionSort(array, start, end):
"""
Expand Down

0 comments on commit dc41a85

Please sign in to comment.