2 ms·
How many times have you been asked to solve fizzbuzz at work? ;-) And yet you can probably fluently juggle for loops and if statements to your heart's content;
by Kim_Bruning 4y ago
How many times have you been asked to solve fizzbuzz at work? ;-)
And yet you can probably fluently juggle for loops and if statements to your heart's content; and can figure ways to bend them to your will (and to the problems at hand).
Similar goes for algorithms (the things leetcode questions ask about.) You'll probably never encounter the exact toy problems that get asked in an interview. The real world is always messy, you you need to be creative and imaginative. Knowing algorithms helps with that because you've already practiced, and have a head start in knowing what works and what not.