DEV Community

Discussion on: Challenge-- Capitalize each word in a string

Collapse
 
neradev profile image
Moritz Schramm

Well, given split and join are also O(n) then you would have some complexity like 3n + x which still is O(n) since you would remove all constants.