parseInt() and check for overflowing integers, or do the actual implementation of
parseInt() and spend maybe an additional 20 minutes on the latter solution.
I've read some discussions/forums online saying that you should implement it the long way because that shows the interviewer how you solve problems. But when would you EVER need to implement
parseInt() in the workplace? You'd just use helper functions instead and be done with it, right?
My question is, what should you do when a simple question like that comes up in an interview?