You are viewing a single comment's thread. Return to all comments →
I used reduce to obtain the max, since spread operator can actually cause a stack overflow for large arrays.
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
I used reduce to obtain the max, since spread operator can actually cause a stack overflow for large arrays.