Aug 5, 2022
Just thought I'd point out that your functional example has a greater time complexity than the procedural one, and it's actually _two_ loops.
Just thought I'd point out that your functional example has a greater time complexity than the procedural one, and it's actually _two_ loops.
Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.