Tag: tutorial
A prime number is a positive natural number that is greater than 1 and no other divisors other than 1 and itself. For example, 2, 3, 5 are primes …
July 2, 2012
algorithms, beginner, brute force, code, implementation, math, programming languages, python, technical, tricks
This article will describe a quick and easy implementation of a algorithm that divides two integers with a high precision. Normally, an array is required to hold the results …
July 1, 2012
algorithms, beginner, code, code library, implementation, interview questions, math, programming languages, python, technical
GCD (Greatest Common Divisor), in mathematics, is refered to the largest number that divides two or more non-zero integers without a remainder. For example, the GCD of 8 and …
The search engines are crawling the web every second. Some are good but some mis-use the information e.g. your email addresses and sell them to third party. You then …
Creating threads is very easy in Python. The following is the example that I use to demonstrate the multithreading in Python. #!/usr/bin/env python import threading import time # lock …