Ran Isenberg
Dec 14, 2021

--

Hi, thanks for the comment albeit a sarcastic one :)

A switch has a complexity of O(N). The solution I presented is O(1) and I think is more readable.

--

--

Ran Isenberg
Ran Isenberg

Written by Ran Isenberg

AWS Serverless Hero | Principal Software Architect | ranthebuilder.cloud

No responses yet