Category: R

Why Vectorize?

In the post (https://statcompute.wordpress.com/2018/09/15/how-to-avoid-for-loop-in-r), I briefly introduced the idea of vectorization and potential use cases. One might be wondering why we even need the Vectorize() function given the fact that...continue reading.

Le Monde puzzle [#1066]

Recalling Le Monde mathematical puzzle  first competition problem For the X table below, what are the minimal number of lights that are on (green) to reach the minimal and maximal...continue reading.