DEV Community

Discussion on: A common coding interview question

Collapse
 
elisabethgross profile image
elisabethgross

Nice! Was waiting for someone to come up with this one!

Collapse
 
ferceg profile image
ferceg

My solution was the same.
When it comes to challenges I prefer algorithms that can be written in pseudocode and don't use many special (or language-specific) data types.