Repo for my solutions of spoj. Mostly written in Swift (Swift 3.0 because spoj does not support newer). Just for fun.
Note: I use a lot of forced unwrapping. It is a bad approach in Swift, but acceptable with these small algorithm problems (we can assume all inputs are legal).