Square root of a number without using function | O(logn) approach |

Опубликовано: 29 Май 2026
на канале: Coding with Neeraj
175
2

Hello, I am Neeraj Mahapatra,

Today we are going to learn about Square root of a number.
Given an integer x, find the square root of x. If x is not a perfect square, then return floor(√x).

Question Link:- https://practice.geeksforgeeks.org/pr...

Time Stamps:-
00:00-Intro
00:10 - Question Discussion
01:44 - Brute force approach
04:04 - Binary search approach
09:49 - Java Code
12:04 - CPP Code

#cpp #java #programming #squarerootofanumber #squareroot #binarysearch #sqrt #striversdesheet #lovebabbardsasheet
Hope you like this video...
Please SUBSCRIBE, LIKE AND COMMENT...
Share to show Support..

Support us !!!.....Thanks....❤