I dislike algorithm-based interview questions, but as long as people won't stop asking them I may as well practice them.
This is intended as a reference, and should not be used except as such.
In the unlikely event that anyone reads this, and discovers any flaw in the solutions, a PR would be appreciated.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Cracking project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.