Skip to content

Commit

Permalink
Add logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleshot committed Sep 12, 2024
1 parent f450163 commit 60f1a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medium/K-Means_Clustering/K-Means_Clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def k_means_clustering(
) -> list[tuple[float, float]]:
# Your code here
def euc_dist(x1, x2):
return math.sqrt((x2[0] - x1[0]) ** 2 - (x2[1] - x2[1]) ** 2)
return math.sqrt((x2[1] - x1[1]) ** 2 - (x2[0] - x2[0]) ** 2)

for _ in range(max_iterations):
pass
Expand Down

0 comments on commit 60f1a6f

Please sign in to comment.