Jump to content


.josh

Member Since 01 Jan 1970
Offline Last Active Aug 31 2015 09:28 PM

Posts I've Made

In Topic: Programming interview question

22 August 2015 - 04:25 AM

Wow. You must have a very interesting interview process.


What can I say, some people are just more.. adventurous.. than others.

In Topic: Programming interview question

21 August 2015 - 11:58 PM

You know how like if a question was something like "write some code to output 1 to 100" and you just put

echo "1 to 100";
It's totally not what they really wanted, but technically not wrong. So maybe they say "wow, thanks for wasting our time.." or maybe they say "wow! this dude has a sense of humor, we'll hire him!".

I've gotten answers like that from job candidates, and it has indeed influenced me giving them the thumbs up. For example if I could tell from their other answers that they know their shit, then I'm down for seeing answers like this. But if I can tell from their other answers they don't know wtf they are doing.. I'll probably think they really thought that's what the ask was, and I'd facepalm.

As someone who is part of the hiring process for devs, I've seen candidates go both ways.

Anyways, TL;DR: It wasn't meant to be a serious answer, and I prefaced it as such!

In Topic: Programming interview question

21 August 2015 - 11:18 PM

Well you know, I did preface it with:
 

or at face value you could could go the "cheap GIGO answer" route, accept input as full string and just sort it


In Topic: Programming interview question

20 August 2015 - 08:32 PM

or at face value you could could go the "cheap GIGO answer" route, accept input as full string and just sort it:
$points = array(
  'B-->C',
  'A-->B',
  'C-->D'
);
 
sort($points);
 
print_r($points);
/* output:
Array
(
    [0] => A-->B
    [1] => B-->C
    [2] => C-->D
)
*/

Or with an associative array:
 
<?php
$points = array(
  'B'=>'C',
  'A'=>'B',
  'C'=>'D'
);

asort($points);

print_r($points);
/* output:
Array
(
    [A] => B
    [B] => C
    [C] => D
)
*/

In Topic: Need help answering college sample exam question

16 June 2015 - 01:54 PM

Sorry, this isn't a "Do my homework for me" site.