3 comments

[ 1.9 ms ] story [ 37.6 ms ] thread
What terrible puzzles.

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.")

Some of these are on leetcode which had user-reported frequency of appearance in 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.

Seconding this opinion. I could write pages on how these questions are bad.

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.