How to Determine Sum of Two Square Numbers? April 6, 2019 algorithms, brute force, c / c++, math No Comments Given a non-negative integer c, your task is to decide whether there’re two integers a and b such that a^2 + b^2 = c. Example 1: Input: 5 Output: … [Continue Reading...]
How to Check Valid Perfect Square without Sqrt Function? February 28, 2019 algorithms, brute force, c / c++, math No Comments 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 … [Continue Reading...]