LeetCode’un mayıs ayı için her gün bir programlama sorusu sorduğu “May Challenge”‘ın 9. gün sorusu “Valid Perfect Square””in açıklaması ve çözümü.
🔥 LeetCode May Challenge: https://leetcode.com/explore/featured/card/may-leetcoding-challenge
➡️ Problem açıklaması:
Given a positive integer num, write a function which returns True if num is a perfect square else False.
☢️ Note: DO NOT use any built-in library function such as sqrt.
Example 1:
Input: 16
Output: true
Example 2:
Input: 14
Output: false