Skip to content

Comment on Guide to Recursion for Coding Interviews

Comments

The example is buggy. In a better version, both the parameter and the returned type should be unsigned. With negative numbers, that don't make sense, the program will crash. I don't think the interviewer will like it written in that way :-)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.