in js? 😁
Not if you haven't measured it to be a problem
of course who in this world doesn't want his code to be optimized and light? light for faster on cpu
It's required only after it becomes a problem
But meeting of time complexity is so strict in leetcode/DSA ...
So if you did some dumb shit and it's too slow for what you need it to do, then you rethink it and fix it
Leetcode level optimization is required?
Otherwise your time is probably better spent elsewjere
Things should never really take any time
Обсуждают сегодня