code-reviews

raspasov 2021-05-11T00:25:05.036100Z

I went through one of these hackerrank puzzles last night and even submitted one solution in Clojure for fun that’s pretty idiomatic. It gave me a score of 10/60 because most tests with huge numbers (in the hundreds of millions of n!) would time out. Then I looked at other people’s solutions that have 60/60 scores and they all consist of low level perf optimizations around loop/recur, unchecked math, type hints, etc. It seems like the site turns into “most clever perf optimization competition”. Since there are so many ways to write a solution to a problem, the only easy way for them to automatically “give a grade” to a solution is based on performance. I totally have done the perf tricks showed there when needed but they are not required in 98% of the code that I usually write.

seancorfield 2021-05-11T01:04:23.036600Z

@raspasov Yeah, that sort of thing is why I consider these sites completely inappropriate for hiring purposes.

👍 1
zendevil 2021-05-11T07:25:20.037Z

https://prit.substack.com/p/hackerrank-5-d7a