Tag: python
Teaching Kids Programming: Videos on Data Structures and Algorithms The Golden Ratio, in mathematics, is often denoted using the symbol . The approximate value of the Golden Ratio is …
The problem of ‘Tower of Hanoi’ is a very classic problem/puzzle that is often used to teach recursion in Computer Science. The problem can be described as moving a …
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 problem is from codeforces: http://www.codeforces.com/problemset/problem/278/B The problem asks for the first sequence (sorted in alphabetic order) of character(s) that is not a substring of the given list of strings.The …
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 # …