Given the coordinates of four points in 2D space, return whether the four points could construct a square.

Continue reading “Leetcode: Valid Square”

Given the coordinates of four points in 2D space, return whether the four points could construct a square.

Continue reading “Leetcode: Valid Square”

Given an integer, write a function to determine if it is a power of two.

Continue reading “Leetcode: Power of Two”

Divide two integers without using multiplication, division and mod operator.

Continue reading “Leetcode: Divide Two Integers”

Given an integer, write a function to determine if it is a power of three.

Continue reading “Leetcode: Power of Three”