Strict Weak Ordering

Almost all C++ STL containers rely on strict weak ordering. For example, when sorting a std::vector using std::sort, we have to either pass a comparator... [Read More]
Tags: C++

UVa 11364 - Parking

Let the optimal parking spot be $x$. The position of the stores are given as $a_1, a_2, a_3,\ldots,a_n$. It is easy to see that, [Read More]
Tags: UVa