¿Superarás el test de inteligencia de Thomas Edison?

Uno de los aspectos más criticados en cualquier entrevista de trabajo es el grupo de preguntas absurdas que el empleador decide hacer para evaluar… vaya uno a saber qué. Pero esto no es algo exclusivo de compañías modernas relacionadas a la tecnología. En el año 1921, el… » neoteo.com | neoteo.com

4 de junio de 2020 · 1 min · 51 palabras · Nacho Cano

Sudoku en Prolog

Sudoku en Prolog » blog.adrianistan.eu | blog.adrianistan.eu

13 de abril de 2020 · 1 min · 7 palabras · Nacho Cano

El acertijo de las 5 casas de Einstein, ¿te atreves?

El acertijo de las 5 casas de Einstein nos propone un interesante ejercicio de lógica y deducción que supuestamente, solo resuelve el 2% de la población. » Valeria Sabater | lamenteesmaravillosa.com

4 de marzo de 2020 · 1 min · 31 palabras · Nacho Cano

Demystifying the regular expression that checks if a number is prime

A while back I was researching the most efficient way to check if a number is prime. This lead me to find the following piece of code: public static boolean isPrime(int n) { return !new String(new char[n]).matches(”.?|(..+?)\\1+”); } I was intrigued. While this might not be the most efficient way, it’s certainly one of the less obvious ones, so my curiosity kicked in. How on Earth could a match for the .?|(..+?)\1+ regular expression tell that a number is not prime (once it’s converted to its unary representation)? ...

10 de septiembre de 2016 · 1 min · 92 palabras · Nacho Cano

Keyboard rubik’s cube

This is my keyboard rubik’s cube. Must be solved in the normal way, but you have toï’¿ consider the centers and positioning the right way when you are solving the cube. » Miguel Alonso | youtube.com

25 de febrero de 2013 · 1 min · 36 palabras · Nacho Cano