First, the article needs to specify that these puzzles should be done in C.
Second, none of the answers to "Print all numbers between 1 to N without using semicolon" -- the only one I clicked on -- are done without a semicolon.
Third, why are these the "top 25 programming puzzles commonly asked in a technical interviews [sic]"? He just makes that claim, without proof. (The author should have just said, "These are the programming puzzles I use in my technical interviews.")
3 comments
[ 1.9 ms ] story [ 37.6 ms ] threadFirst, the article needs to specify that these puzzles should be done in C.
Second, none of the answers to "Print all numbers between 1 to N without using semicolon" -- the only one I clicked on -- are done without a semicolon.
Third, why are these the "top 25 programming puzzles commonly asked in a technical interviews [sic]"? He just makes that claim, without proof. (The author should have just said, "These are the programming puzzles I use in my technical interviews.")
I've personally seen the power and addition ones.
They're all terrible, but also representative of the quality of questions asked in interviews these days.
But I'll just note that implementing power "without multiplication", but using exp and log is a not even a question. Exp is the power function.