DEV Community

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

Collapse
 
jasterix profile image
Jasterix • Edited

Very nice! Unfortunately I suck at RegEx :(

Would the Big-O of this be constant?

Collapse
 
neradev profile image
Moritz Schramm • Edited

This one should be O(n). I had the same question in mind and googled it. Never the less, I am actually a big fan of regex :D I have fun writing them.