Category: beginner
Apache Server allows URL rewrite rule by simply placing a file called .htaccess under the FTP directories. The Rewrite Rules will override its parent one if there is any. …
The Longest Increasing Sequence (LIS) asks for the longest increasing sequence in a list of numbers. For example, in the list 1, 6, 2, 5, 4, 7, the longest …
Fermat Prime Test Algorithm is to check whether a number is prime. It is a probabilistic approach that based on the following observation. . This is also known as …
In , the GCD (Greatest Common Divisor) is given in brief details. The algorithm can be implemented in both recursive and iterative forms. The recursive formula is , and …
The problem is from codeforces: http://codeforces.com/problemset/problem/245/A A really simple math problem, can be solved within a few lines of Python code: #!/usr/bin/env python ax = asum = 0 bx = …