Kaleb Haugen :antiverified: · @kaleb_haugen
45 followers · 666 posts · Server hachyderm.io

My 11 year old son is teaching himself C++ and his current puzzle required him to complete in a single operation. While he knew he needed to return the “remainder” he had never heard of the modulo (%) operator.

I love eureka moments. This one lesson helped him see how to simply many of the challenges he has already completed. Rather than doing: numerator - (denominator (numerator / denominator)) he could simply do: numerator % denominator.

++

#c #stem #learn2code #EurekaMoment

Last updated 1 year ago

Alwin de Rooij · @Creativity
282 followers · 30 posts · Server fediscience.org

How being in the "... the twilight zone between sleep and wakefulness ..." can be leveraged for problem solving through spontanous insight (Aha!).

science.org/doi/10.1126/sciadv

#psychology #EurekaMoment #sleep #creativity

Last updated 2 years ago