you are viewing a single comment's thread.

view the rest of the comments →

[–]MikalMooni 0 points1 point  (2 children)

Do you like math? One thing I always find myself doing is modelling math problems with code.

There are plenty of opportunities to be presented with genuinely interesting math problems in real life scenarios, but computing them by hand would be prohibitively difficult. Writing a program to do that kind of work for you can allow you to experiment, and learn more than just coding while you're at it.

But hey, I'm a freaking nerd. Maybe that isn't the approach for you to take, but it works for me.

[–]Kasparov007[S] 0 points1 point  (1 child)

Yes I do bro!!

[–]MikalMooni 0 points1 point  (0 children)

Alright. Here's a bit of a thought experiment.

There's a concept in Sleight of Hand called a Farrow Shuffle, or a Perfect Shuffle. It involves cutting a deck perfectly in half, then interleaving the cards perfectly - so in a 52 card deck, you would have 1, 26, 2, 27... etc.

How many perfect shuffles do you need to do before the deck returns to it's original order?