Here's basically what they asked me to do:
#1) Write a function that accepts one parameter. An array of numbers. Convert those numbers to pseudo-binary strings. Instead of "0" use "Y" and instead of "1" use "X"
#2) Do the reverse, Write a function that accepts an array of pseudo binary and convert it to an array of numbers.
Anyways, thanks for answering!
My 6 minutes didn't include them explaining the question or them going over my answer. I didn't really explain my work. I did talk a little while I wrote, but after I finished he just went through my code line by line himself.
They were kinda shocked at what I did with it, because no one else had went that far with such a simple thing. Honestly, I thought it was stupid and boring, considering I've been a dev for so long - its a bit insulting.
At least the kind of test you got was a bit more interesting...
Just fyi, its probably because many developers don't touch binary.
I work with numbers all day but they are currency transactions and accounting data. I haven't cared about transforming something to/from binary in 10+ years and couldn't do it without googling.
However, the number of devs (and accountants) who can't figure out a 4-4-5 calendar reliably is quite impressive.
If you remember binary is just base2 I bet you could do it. Since you do accounting stuff, could you split a number into each base 10 component? 462 = (400,60,2). A bit of thinking leads me to 10^i, a for loop and some conditional subtraction / modulo. Binary is just 2^i.
So, no, I'm going to refuse a screen that prevents me from solving it the way I'd solve other problems I don't do regularly.
Wait, WAT?!
I am flabbergasted that this could possibly take a 'serious' computer-y person with ANY knowledge of just about ANY programming language an hour to do. I mean, 6 minutes is very good, it would take me longer to type it all out and run through the bugs in my code.
But an hour!? What are the other applicants doing in that time for Christ's sake? Playing hop-scotch?
Jeeze, maybe the big 4 really aren't kidding when they say that they can't find anyone good...
The point I was trying to make wasn't to trash the other candidates. My mistake if it came off that way.
My point was: If the pool of qualified candidates is so small they have unfilled positions, why's it so hard for me to get remote work out there?
(As a side note: I'm happy to trash the charlatans who lie about their education, cheat on exams and hire freelancers to interview for them. :/)