Moonwraith
OSNN Veteran Addict
- Joined
- 22 Oct 2004
- Messages
- 1,133
A friend of mine stumbled across the following site:
http://www.gowrikumar.com/programming/index.html
It's basically made up of questions that are meant to get you into the right state of mind for an interview, apparently. Although, most of them so far have just confused the sweet jesus out of me.
There's one that's been baffling us for a good few hours now...
7.Write a C function that will print 1 to N one per each line on the stdout where N is a int parameter to the function. The function should not use while, for, do-while loops, goto statement, recursion, and switch statement.
If anyone can think of a decent answer to this, then you're a lot better than me (not hard).
Quite a few fun questions on there mind you. Ideally one day I'm thinking of working through all of them. Couple of other ones currently sucking are: question 3 and figuring out all possible ways to solve 8, currently know of two, but apparently there's at least three.
Anyone with some novel solutions, chuck a reply please!
http://www.gowrikumar.com/programming/index.html
It's basically made up of questions that are meant to get you into the right state of mind for an interview, apparently. Although, most of them so far have just confused the sweet jesus out of me.
There's one that's been baffling us for a good few hours now...
7.Write a C function that will print 1 to N one per each line on the stdout where N is a int parameter to the function. The function should not use while, for, do-while loops, goto statement, recursion, and switch statement.
If anyone can think of a decent answer to this, then you're a lot better than me (not hard).
Quite a few fun questions on there mind you. Ideally one day I'm thinking of working through all of them. Couple of other ones currently sucking are: question 3 and figuring out all possible ways to solve 8, currently know of two, but apparently there's at least three.
Anyone with some novel solutions, chuck a reply please!