Google’s Foo.bar: Doomsday Fuel

I tried a simple way in my very first solution, only two test cases passed. Then I google’d other ppl’s test cases, and found this.

This challenge is about mathematics, not traditional algorithms. Thanks to this, I learned Markov Chains and Absorbing Markov Chains. Thanks to @patrickJMT for his videos on youtube.

All test cases, someone posted on pastebin.com

You are not authorised to read all content in this post.

Please login…

Google’s Foo.bar: Doomsday Fuel by @sskaje: https://sskaje.me/2017/05/googles-foo-bar-doomsday-fuel/

Incoming search terms: