- Joined
- 5/2/06
- Messages
- 11,954
- Points
- 273
To quote Mr. Connor on his experience interviewing C++ programmers for FE jobs
So I thought the best way to learn is play. So it may be fun and beneficial to post programming problems I encouter on various forum, brainteaser books. I do not know the answers before hand. If you see some nontrivial programming questions, please post here. You may very well see them during your interviews.In recent times, I've handed over a laptop and asked a candidate to write some code for a standard algorithm like quicksort or even just a hash table. In fact, I've found the best predictor of programming skill is actually the expression on their face when I do.
Code:
1) Write one line of code to swap the contents two variables without using a temp variable
2) Write a program to print 1-100 and backward without using loops.
3) Write a C++ program to print out "Hello world" without using any ';'