All N-Rooks algorithm and a linear time N-Queens solution | Hacker News Reader