Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by asQuirreL on Wednesday May 27, 2015 @05:27AM
(#9610209)
The question is probably more aptly written as "Take the width, height and depth of a cuboid in centimetres, and return its volume in litres".
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by JDDunn9 on Wednesday May 27, 2015 @05:40AM
(#9610254)
It means the volume in excess of 1 litre, since it talks about returning a negative number if it is less than that.
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by kbart on Wednesday May 27, 2015 @06:05AM
(#9610336)
This. But as for non-native English speaker, that "over a litre" part is easy to miss. Special care should be taken when interviewing candidates not in their mother tongue and such single word catch should be emphasized more.
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by usea on Wednesday May 27, 2015 @07:19AM
(#9610545)
I am a native English speaker, and I've never seen that. I was very confused, and I would have had to ask many questions to figure out what "the volume over a litre" meant.
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by ajkjk on Wednesday May 27, 2015 @04:55AM
(#9610123)
Yeah, it's gibberish. I'm not sure what was intended either. Something like "return how much the volume goes over a litre".
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by lanreezy on Wednesday May 27, 2015 @05:44AM
(#9610271)
Not gibberish per se.
1000 centimeters cubed = 1 L
So if you have 3 measurements in cm, you would multiply them all together and divide by 1,000 to get an answer in Liters.
[Edit for typo]
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by afandian on Wednesday May 27, 2015 @10:01AM
(#9611359)
Not sure if you were being facetious, but you actually misunderstood the question (I think).
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by ajkjk on Wednesday May 27, 2015 @12:34PM
(#9612530)
Oh sorry. Not saying the question is gibberish or anything. It's just missing a couple words so it's hard to parse.
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by avinassh on Wednesday May 27, 2015 @05:31AM
(#9610224)
Non native speaker here. Does this above question mean, calculate volume with the three measurements and convert that from centimeter to litre? (thousand cubic centimeters make a litre)
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by afandian on Wednesday May 27, 2015 @10:02AM
(#9611366)
Native British English speaker here. The question is not at all clear. It might be a test to see if the candidate says "can you rephrase the question?".
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by gliese1337 on Wednesday May 27, 2015 @05:57AM
(#9610308)
It's a common idiom to use "over" as an equivalent for "divided by". I'm not certain that's what's meant here, now that you question it, but I assume it means "give the volume in fractional liters".
EDIT: Actually, looking at the context again, I'm quite certain that's not what is meant at all. They must want the part of the volume exceeding a liter, as mentioned in other comments. But that was definitely not my first interpretation, due to the idiom I just described.
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by 4ydx on Wednesday May 27, 2015 @05:57AM
(#9610307)
The questioner really meant to say "Return as the volume exceeding a litre." Even saying "over a litre" will probably make anybody familiar with physics wonder just exactly what they are asking. "Volume over litres" is what it made me think initially which is very confusing as I don't know what that would actually be in the physical world (other than a nonsensical scalar).
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by solaris999 on Wednesday May 27, 2015 @05:54AM
(#9610302)
From the description of the problem immediately afterwards, they're looking for you to return "a" (a variable name) which is the magnitude of the volume given less the volume of 1 litre (i.e "a" cm^3 - 1000 cm^3)
Re:5 Alternatives to the Fizzbuzz Test for Hiring Programmers
by wtbob on Wednesday May 27, 2015 @05:58AM
(#9610310)
It sounds gibberish to a native speaker too, but from context what he meant was, 'take three measurements in centimetres, calculate the volume and return the amount in excess of one litre.'
I have a hard time understanding what this us supposed to mean. Is there a typo somewhere? "returns a the volume over a litre" sounds like gibberish, but then I am not a native speaker.