SShahwar Alam Naqvi·Dec 16, 2025LeetCode: Find Sqrt(x)Problem: https://leetcode.com/problems/sqrtx/description/ Code: class Solution: def mySqrt(self, x: int) -> int: if x <= 1: return x low, high = 1, x // 2 while low <= high: mid = (low + high) // 2...2 min read·is-power-of-two.hashnode.dev
SSubhradeep Saha·May 7, 2024Solving a Leetcode problem daily — Day 8 | Sqrt(x)Tackle this Leetcode problem of finding the square root of a number by combining concepts of Maths and Binary Search algorithm7 min read·subhradeepsaha.hashnode.dev
NNamya Shah·Dec 28, 2023Python cMath ModuleBasic Complex Number Functions: cmath.sqrt(): Calculates the square root of a complex number. cmath.exp(): Calculates the exponential of a complex number. cmath.log(): Calculates the natural logarithm of a complex number. cmath.log10(): Calculate...2 min read·bigsmoke.hashnode.dev
NNamya Shah·Dec 27, 2023Python Math ModuleBasic Mathematical Functions: math.sqrt(): Calculates the square root of a number. math.pow(): Raises a number to a specified power. math.exp(): Calculates the exponential of a number. math.log(): Calculates the natural logarithm of a number. ma...2 min read·bigsmoke.hashnode.dev
TTanvir Ahmed Khan·Oct 3, 2023Square Root Function Implementation in Assembly Language (MIPS32 ISA)💡 You can use Cpulator (Online Simulator) to execute this code. 💡 Remember to set the stack pointer beforehand, otherwise, it might throw you an 'overflow' error. The stack pointer is typically initialized to the highest address in the data segm...3 min read·tanvirahmedkhan.hashnode.dev