Skip to content

evgenius1424/unlucky-tickets-puzzle

Repository files navigation

Unlucky Tickets Generator 🎫

In a childhood I had a lot of public transport adventures and of course it was fun to do some sum to find out if you have a lucky ticket or not.

And in case you do not have a lucky ticket, you try to do some other mathematical operations on both sides to find a common value.

I was always interested to know how many really unlucky tickets there are and how to calculate them.

Out of curiosity this simple project was created. The post about it got 17K+ views on the popular tech resource Habrahabr. 🚀👀

How to Run

Run the following command to print all tickets to standard output

./gradlew run

About

Implementation of a unlucky ticket generator for publication on habr.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages