2 ms·
> We still tolerate PhD Comp Sci algorithm questions for frontend developer gigs Go and look at some Javascript answers on StackOverflow, and then consider why
by IshKebab 6y ago
> We still tolerate PhD Comp Sci algorithm questions for frontend developer gigs
Go and look at some Javascript answers on StackOverflow, and then consider why lots of websites are so slow!
Some random examples:
* Deduplicating an array; top answer is N^2: https://stackoverflow.com/a/9229932/265521 https://stackoverflow.com/a/9229932/265521
* Deduplicating array again: top answer is still N^2!: https://stackoverflow.com/a/14438954/265521 https://stackoverflow.com/a/14438954/265521
I've seen loads of similar examples. Maybe there is code that doesn't use any algorithms at all but it's probably not very interesting code.