• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
August 21, 2024 |10 Views

PROBLEM OF THE DAY : 13/08/2024 | Square Root of a Number

Description
Discussion

Welcome to the daily solving of our PROBLEM OF THE DAY with Devashish Khare We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of Searching but also build up problem-solving skills.

Given an integer n, find the square root of n. If n is not a perfect square, then return the floor value.

Floor value of any number is the greatest Integer which is less than or equal to that number

Examples:

Input: n = 5 Output: 2 Explanation: Since, 5 is not a perfect square, floor of square_root of 5 is 2.

Give the problem a try before going through the video. All the best!!!
Problem Link: https://practice.geeksforgeeks.org/problems/square-root/1