A homework in algorithms | Hacker News Reader