Skip to content

Commit

Permalink
Solved: Square_Root_Floor
Browse files Browse the repository at this point in the history
I solved the issue: : Square_Root_Floor
  • Loading branch information
kimya-fayaz authored Jan 5, 2025
1 parent 3660d01 commit 7a6f302
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions solutions/Square_Root_Floor
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import math

def floor_sqrt(numbers):
result = []
for num in numbers:
if num < 0:
result.append(None)
else:
sqrt_value = math.sqrt(num)
result.append(math.floor(sqrt_value))
return result

0 comments on commit 7a6f302

Please sign in to comment.