pouët.net

Go to bottom

questions for programmers interview

category: code [glöplog]
tomaes: may I?
[code]
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++>+>+++++++++++++++++++++++++++++++++++++++++++++++++>>>+>++>>>++++>+>++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<<<<<<<<<<<<<<<<<[>>>----------------------------------------------------------[>>]<[<+>>---------->]<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>>>>[>>>[<<<<<<<<<.>>.>>>>>]>[<<]]<[>+++>>>>>>.>.>..<<<<<<<]>>[<<]>[<+++++>>>>>>>.<.<..<<<<<<]>>>.<<-<<<-<<<<+<<<-]
+++++++++++++++++++++++++++++++++++++++++++++++++.-..[code]
wasted the better half of a long day, tested with http://www.iamcal.com/misc/bf_debug/
added on the 2012-07-04 04:32:25 by vectory vectory
facepalm
Code:+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++>+>+++++++++++++++++++++++++++++++++++++++++++++++++>>>+>++>>>++++>+>++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<<<<<<<<<<<<<<<<<[>>>----------------------------------------------------------[>>]<[<+>>---------->]<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>>>>[>>>[<<<<<<<<<.>>.>>>>>]>[<<]]<[>+++>>>>>>.>.>..<<<<<<<]>>[<<]>[<+++++>>>>>>>.<.<..<<<<<<]>>>.<<-<<<-<<<<+<<<-] +++++++++++++++++++++++++++++++++++++++++++++++++.-..
added on the 2012-07-04 04:33:24 by vectory vectory
broken pouet is broken. i demand satisfaction in form of proper display of the code
Code: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >++++++++++++++++++++++++++++++++++++++++++++++++ >+ >+++++++++++++++++++++++++++++++++++++++++++++++++ >>>+ >++ >>>++++ >+ >++++++++++ >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <<<<<<<<<<<<<<<<< [ >>>---------------------------------------------------------- [>>]<[ <+ >>---------- >] <++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>> [ >>> [ <<<<<<<<<. >>. >>>>> ] >[<<] ] < [ >+++ >>>>>>.>.>.. <<<<<<< ] >> [<<]>[ <+++++ >>>>>>>.<.<.. <<<<<< ] >>>. <<- <<<- <<<<+ <<<- ] +++++++++++++++++++++++++++++++++++++++++++++++++.-..

added on the 2012-07-04 04:42:36 by vectory vectory
vectory: interesting, mind adding some comments?
added on the 2012-07-04 09:27:26 by TLM TLM
A little brainfuck challenge:
given a 20 opcode program, what is the highest number that can be computed?
(program must not run forever)

For instance, the program "++++++++[>+++++++<-]" gives 56 (8*8)
added on the 2012-07-04 12:32:21 by TLM TLM
Quote:
A little brainfuck challenge:


Sounds like busy beaver, so it's not as little as you probably want it to be.
not quite brainfuck but brain fucking:
Code: $ perl -e '(((!($_%3)&&s/(.*)/Fizz$_/)|s/(([369])|\d?)?[50]$/Buzz/&(s/(?<=\D)\d+//))||$_)&&print "$_\n"for(1..99);print "Buzz"'
added on the 2012-07-04 14:54:14 by skomp skomp
there should be no space at \D
added on the 2012-07-04 14:54:53 by skomp skomp
TLM: https://gist.github.com/3049454, this were my dev comments to keep track. it's basically a slightly altered, brainfucked version of BarZoule's moduloless c-code.
added on the 2012-07-04 22:47:24 by vectory vectory
Had to share this one with you!

This guy has a 13 (!!) years experience in software development with the following list of experiences (taken from the CV - unchanged):
Quote:
Multithreading & Synchronization
Services
COM
OPC
Database operations with ADO
Networking (TCP/UDP)
Object Oriented Design
Design Patterns
Software Installation (Install Shield)
Remote debugging
Development of GUI (MDI) with MFC
C# with VS-2010

He got this test and those are his answers.

Fucking amazing --- 13 years!
added on the 2012-07-10 15:27:12 by TLM TLM
TLM: That test is absolutely terrible, though.
added on the 2012-07-10 15:40:20 by sagacity sagacity
sagacity: Maybe, but it did the job. It screened the guy right away.
added on the 2012-07-10 15:45:10 by p01 p01
sagacity: what's terrible about it?
added on the 2012-07-10 15:49:18 by TLM TLM
Quote:
regex is pointless and is waist of time
added on the 2012-07-10 15:53:34 by Gargaj Gargaj
Gargaj, so does Brainfuck, still it's an excellent predictor of how someone copes with new things. IHMO anyway...
added on the 2012-07-10 15:58:22 by TLM TLM
that's not my point ;)
BB Image
BB Image
added on the 2012-07-10 16:03:02 by Gargaj Gargaj
lol, didn't noticed that...
added on the 2012-07-10 16:07:56 by TLM TLM
Quote:
Describe in words what does this function is used for and provide an example.


Quote:
You’re mission


Quote:
You may use the BFDev IDE to writing and experimenting.


Quote:
No internet should be used expect for the links given in this document.


Shitty test, shitty applicants.
added on the 2012-07-10 16:12:57 by ponce ponce
ponce, thanks for the english lesson, maybe you should apply for a job at the world wide dyslexia organization... I'm sure they'll appreciate it --- I know I do.
added on the 2012-07-10 16:21:53 by TLM TLM
Seriously, this test is indeed a waste of time.

Except for the "explain and comment this code" part which is IMHO where you can spot true good programmers.

The brainfuck part was the most hilarious thing I'd ever see in a job interview, and I really think the interviewee handled that part the best way ever : the question was dumb, give a stupid answer. He proved at the same time he could assimilate a strange language AND that the question was completely irrelevant.
added on the 2012-07-10 16:33:30 by flure flure
just a little side note, so far about 40 guys went through the test and there is good distribution of the success rate.

From all the applicants I can say that about 1 or 2 did very well, all others failed for one reason or another.

I did had couple of "control group" interviews with applicants that failed the test by an inch. I concluded that I'm happy it filtered them away.

I understand some guys here at pouet think it's pointless. However, personally I feel that there is a good correlation between the test and the position I'm looking for - so I guess I'll keep wasting their time.
And no, I got no plans to waist them instead ;)
added on the 2012-07-10 16:54:36 by TLM TLM
I think both applicant and employer are a bit arrogant here.

The applicant wants to show off, but fails (who cares if you did everything "in five minutes", if everything is _wrong_. Seriously, if given plenty of time, make use of it and double check everything. He got the right idea most of the time, but was too lazy/sloppy/arrogant to improve on the initial results. Simple tasks are are also ample opportunities to discuss different solutions. Do that for browny points. :P)

The employer's English skills look a bit shady and the questions could be indeed a bit better, but it looks to me more like an endurance test than a skill test. Sure, you'll weed out the incompetent, but also the talented, but impatient and dull test averse. :)
added on the 2012-07-10 17:00:07 by tomaes tomaes
The arrogance on the employers (TLM) side is just disgusting. BAH.
added on the 2012-07-10 17:13:09 by Rob Rob
"shady english" -- hell yea, I'm dyslexic :)
added on the 2012-07-10 17:30:26 by TLM TLM
The employer does not deserve to be criticized. The test is fair, and rather easy. If somebody fails this test, he is probably not a good programmer.
added on the 2012-07-10 17:46:02 by Adok Adok

login

Go to top