The Algorithm to Construct the Rectangle Given Its Area April 18, 2019 algorithms, brute force, code, coding exercise, java, math No Comments For a web developer, it is very important to know how to design a web page’s size. So, given a specific rectangular web page’s area, your job by now … [Continue Reading...]
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...]