Daily iOS
UIKitPinterestinterview report

Flood fill on a large grid

You're implementing flood fill on a large pixel grid drawn with a collection view (say, 500×500). If you don't use recursive DFS, how would you write the traversal?

Submit