N Queen problem, a Scala implementation.

The N Queen is the problem of placing N chess queens on anN×N chessboard so that no two queens attack each other. For example, following is a solution for 4 Queen problem. The expected output is a binary matrix which has 1s for the blocks where queens are placed. http://www.geeksforgeeks.org/backtracking-set-3-n-queen-problem/ Using Sets and for-expressions with Scala we can reach a solution very directly: def queens(n: […]

What’s the meaning of life?

What’s the meaning of life? We know for fact that we live in a universe of infinite stars rounding around the Sun and we know for sure that the sun will end up being a big red star long after the complete death of the planet we call Home. We […]

Origen

Desde su origen declaro que este foro es respetuoso con todas las ideas, explícitamente agradezco la generación de ideas que respetan las ideas contrarias pues nada en la naturaleza es blanco y negro y todo tiene sus ventajas y sus inconvenientes. Últimamente veo muchas personas atacando fieramente el capitalismo como […]