People have been flocking to different investments over the past few years, and for good reason. The economy isn’t exactly stable and those without investment seriously jeopardize their financial …
This is quite similar to the Two Sum puzzle. Given a collection of numbers, write a function that finds a pair that will sum to a given value. For …
Given two positive integers x and y, an integer is powerful if it is equal to x^i + y^j for some integers i >= 0 and j >= 0. …
How to Check if Any Three Points can Make a Triangle? There are many ways to check if any given three points in 2D plane can make a triangle. …
Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represented by an integer …