News for hackers. Stuff that matters.
Re:Poll: Is the leetcode grind necessary to land a high payi... by nicbou on Thursday January 27, 2022 @07:25AM (#30099674)
No need to waste any time: Math.max(...arr)

Even when I know how to do something, I look it up just in case. Sometimes there's a cleaner approach, or I learn that I don't fully understand the problem.

Re:Poll: Is the leetcode grind necessary to land a high payi... by mmaurizi on Thursday January 27, 2022 @07:57AM (#30099967)
In this case if you look it up on MDN you'll see that Math.max(...arr) isn't recommended for large arrays (ask me how I know)
Re:Poll: Is the leetcode grind necessary to land a high payi... by nicbou on Thursday January 27, 2022 @09:33AM (#30101009)
I would suspect that. How do you know?

(this sort of discussion is what I'd love to see in a tech interview)