3 ms·
Though what's a bit silly here is that all the information you need is right there in the two words "inverse square", it's only the word "law" tacked on that ma
by htfu 7y ago
Though what's a bit silly here is that all the information you need is right there in the two words "inverse square", it's only the word "law" tacked on that made you (presumably) assume there had to be more to the concept.
You'd assume a competent enough interviewer wouldn't be so rigid and at least hint that you shouldn't overthink it...
- hardlianotion 7y agoOne needs a little domain knowledge for "inverse square" to be informative. It is a simple-minded interviewer that wouldn't just explain the concept. Unless you are hiring someone that is supposed to understand some maths, that is.
- gbrown 7y agoWhat does it mean to implement it in code though? What kind of data should it consume - n-dimensional coordinates, distance matrices, some sort of power level to calculate falloff? If it’s as described, it’s way too vague. Inverse square laws show up all over.
- hardlianotion 7y agoWell, yes - I agree.