Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it just me or does the grid initialization example seem extremely contrived?


I thought that too. I found it hard to believe that anyone would write either of the first two versions without having thought of the 3rd - or, you know, just having 2 or 4 separate for loops. Maybe there was something about the problem's context that the author left out of the post though?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: