News for hackers. Stuff that matters.
Re:The algorithm for a perfectly balanced photo gallery by jongleberry on Thursday August 22, 2013 @04:14PM (#6259763)
i think i found the problem with the algorithm. sometimes it returns an empty row. the javascript version throws while the python version doesn't. i fixed it in my fork by just reducing the number of rows until it doesn't throw: https://github.com/jonathanong/linear-partition

There are no comments on this comment yet.