1 Open    1 Closed
make it testable
Closed 6 hours ago
100% complete    0 open    1 closed

So far, it's one file solution which is written in single control flow, no class abstraction. This is because make it light-weight so that it doesn't embrace performance gridges. But because of this design, it is very difficult to unit-testing code.
We should divide code into logical snippets. And then we'll add complete test-cases for known problems.