Skip to content

Commit

Permalink
Update kyu_6/find_the_in_between_point/solution.py
Browse files Browse the repository at this point in the history
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
  • Loading branch information
ikostan and sourcery-ai[bot] authored Dec 31, 2024
1 parent 1ed9e3f commit 11620d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kyu_6/find_the_in_between_point/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ def middle_point(*args) -> int:
if a_c < b_c and a_b < b_c:
return 1

if a_b < a_c and b_c < a_c:
return 2

return 3
return 2 if a_b < a_c and b_c < a_c else 3


def distance_between_two_points(a: tuple, b: tuple) -> float:
Expand Down

0 comments on commit 11620d1

Please sign in to comment.