Re:I got asked LeetCode questions for a dev-ops systems engi...
by naveen99 on Friday June 14, 2019 @03:07PM
(#20185774)
For loop syntax is unnecessarily complex when you first encounter it. A simple if then control flow is much easier to understand and is how it’s done in assembly anyway. Unfortunately he used both. Maybe an opportunity to teach him about goto and labels...
[ Parent
| on HN ]
Re:I got asked LeetCode questions for a dev-ops systems engi...
by pault on Friday June 14, 2019 @03:15PM
(#20185842)
When you first encounter it sure. After you've been writing code for more than a few months I would expect you to have mastered it. If you don't understand the fundamental behavior of a for loop after ten years of professional experience, something is very wrong.