2 ms·
Very true, wish your comment had more upvotes to bubble up to the top of the thread. Its a lot easier to miss edge cases, have off by one errors when one is ma
by srean 8y ago
Very true, wish your comment had more upvotes to bubble up to the top of the thread.
Its a lot easier to miss edge cases, have off by one errors when one is manipulating iter count directly. Working with the abstraction natural to the problem reduces these. So manipulating /creating / merging rows, columns, blocks when working with arrays help avoid many of these problems. Usually the algorithm pseudocode is written in terms of such abstractions.