Category: geometry
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 …
On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = …
You are given an array x of n positive numbers. You start at point (0,0) and moves x metres to the north, then x metres to the west, x …
The Scatter Plot is often used to show vivid relations between two variables. Plotting is made very simple and easy in Python using numpy and matplotlib.pylab package. To demonstrate, …