Category: math
The math constant e can be computed using the following series (also see this, this and this post): i.e. If we combine every two iterations, we will get something like, If …
The Ackermann function is mathematically defined as: The Ack function is well-defined total math function which is compute-able but not a primitive recursive function. Its value grow so quickly …
Count how many squares are there in the following figure. Easy validation by Python using Bruteforce, checking every possible pair of points (lower-left, and upper right) #!/usr/bin/env python # …
The problem is from codeforces: http://www.codeforces.com/problemset/problem/278/A The problem can be simplified as the following: in a double-direction link, given two nodes, compute the shortest distance between them. There are only …
In , an equation drawn is shaped to heart. The following is another equation: , corresponding to the following graph. Happy Valentine’s Day! You could also draw a heart …