5 ms·
exposure to more solution techniques into programming problems that you might run into most likely in an interview session. A lot will say learn this as it is
by ojr 10y ago
exposure to more solution techniques into programming problems that you might run into most likely in an interview session.
A lot will say learn this as it is the "core" of programming, but in industry practice I've seen using pure functions (functions that return the same result when the same parameter is passed in) is becoming more commonplace than having a trickier function that mutates a variable differently during each iteration, making it harder to reason about program state. Algorithmic problem solutions usually involve non-pure functions that are not intuitive until you've seen them before. Front-end UI is better built using several pure functions.