+ 40

What are some of the toughest programming interview questions you have faced?

4th Jun 2019, 5:40 AM
The Princess Diary 2001
The Princess Diary 2001 - avatar
42 Antworten
+ 25
Find out greater of two number without using any comparsion.
4th Jun 2019, 5:36 PM
Sharofiddin
Sharofiddin - avatar
+ 19
Not an interview but one time I showed my professor my code. He asked "What is this mess". I had no answer 😂. HTML with no indents can destroy anyone
4th Jun 2019, 7:34 AM
Clueless Coder
Clueless Coder - avatar
+ 15
Daniel Cooper right 👍
4th Jun 2019, 6:29 AM
The Princess Diary 2001
The Princess Diary 2001 - avatar
+ 13
Interview programs be like we need to solve several cases,that means they give input and also they provide what type of output will come.we need to write program to satisfy the Input and output
4th Jun 2019, 4:46 PM
M.MANIVANNAN
M.MANIVANNAN - avatar
4th Jun 2019, 7:37 AM
The Princess Diary 2001
The Princess Diary 2001 - avatar
+ 12
Sharofiddin that's OK. It works. It gives the larger number. I was expecting a Boolean result like in Jean-François Harvier 's code which is another way to do it.
5th Jun 2019, 11:28 AM
Sonic
Sonic - avatar
+ 12
For me, the toughest question in an interview was, "What are your weaknesses?" I told them my weakness is staying in the sun too long because my skin catches on fire and I'll eventually die. I got the job. 😂
5th Jun 2019, 2:19 PM
AgentSmith
+ 11
5th Jun 2019, 2:35 PM
The Princess Diary 2001
The Princess Diary 2001 - avatar
+ 10
Basel Al_hajeri.MBH Can you provide examples? This answer is very vague.
4th Jun 2019, 6:25 AM
Daniel Cooper
+ 10
Hey programmer! Write something on the board. I was about to write <html> Only to realize the question! I wrote "something" It's not all about programming but also chasing perfection.
4th Jun 2019, 9:42 PM
Festus Mutua Muasya
Festus Mutua Muasya - avatar
+ 10
Farry so what the answer is??
5th Jun 2019, 2:36 PM
The Princess Diary 2001
The Princess Diary 2001 - avatar
+ 9
Sharofiddin what if a=3 and b=2? How does your formula help?
5th Jun 2019, 9:48 AM
Sonic
Sonic - avatar
+ 8
All! I think
4th Jun 2019, 6:08 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 8
What about that? Would it be a correct answer? https://code.sololearn.com/c4ayjLCMhSaI/?ref=app
5th Jun 2019, 7:20 AM
Jean-François Harvier
Jean-François Harvier - avatar
+ 8
tell me about yourself??
5th Jun 2019, 8:29 AM
Barath Kumar
Barath Kumar - avatar
+ 8
Sonic just (a+b +abs(a-b))/2 solves this
5th Jun 2019, 9:05 AM
Sharofiddin
Sharofiddin - avatar
+ 8
Farry thanks for the info
5th Jun 2019, 3:39 PM
The Princess Diary 2001
The Princess Diary 2001 - avatar
+ 8
I showed off my object oriented programming skills to my professor and he said "Yes, but what does it do? The code is good but the output is confusing to those who didn't read the code" I obviously didn't think this through! This is the code I showed him 😂 https://code.sololearn.com/cQRuhy8z0Km8/?ref=app
6th Jun 2019, 7:33 AM
Clueless Coder
Clueless Coder - avatar
+ 7
Sharofiddin so what was the answer?
5th Jun 2019, 4:32 AM
Sonic
Sonic - avatar
+ 7
Rishabh Agrawal what about if a=0
5th Jun 2019, 9:11 AM
Sharofiddin
Sharofiddin - avatar