Codeforces: B. Taxi May 19, 2012 algorithms, beginner, codeforces, greedy algorithm, math, python No Comments The problem is from codeforces http://www.codeforces.com/problemset/problem/158/B Solution is easy: First you need to sort the group numbers in desending order. You create two index pointers, pointing to the start … [Continue Reading...]