Tag: math
You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Example: Input: points …
The board of Go Game has 19×19 lines. Players place stone on the line intersections. Therefore the complexity of all state space is 3^361 because each intersection could have …
The Hamming Distance is the number of different symbols between two strings/numbers (equal length). It can be also considered as the number of changes required to convert from one …
A man is drinking a beer in a pub, he feels boring. A lady comes to him, takes out two coins and says: “Let’s play a game. Let’s throw …
A point is chosen randomly in a square. 4 lines are drawn to connect this point with the 4 vertices of this square, such that 4 triangles are formed. …