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.
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.
AWS Serverless Hero | Principal Software Architect | ranthebuilder.cloud