Computing Square Root with Exponentiation

✅ Day 9 of #DSAPrep > Problem: Square Root of a Number > Platform: LeetCode > Concept: Mathematical Computation Computed the square root of a number using exponentiation, > Key Idea: - num ** 0.5 gives the square root - int() returns the floor value > Example: 36 → 6 > Time Complexity: O(1) > Space Complexity: O(1) Sometimes the simplest approach is the cleanest one ✅ Consistency continues 🚀 #DSAPrep #Python #Algorithms #ProblemSolving #CodingJourney

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories