We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is a really badly designed Hackerrank evaluation on an interesting question.
1) You can get full points for just printing out the hardcoded text answer 0.145 ಠ_ಠ
2) The question says to read from stdin but then the "submit" button doesn't come with any stdin test cases, so you need to hardcode the input as a list into your solution.
There are plenty of ways to make this an interesting problem - what if you need to read in from a file? What if the input can be any arbitrary number of lists?
The calculation itself is a worthwhile exercise - I suggest doing it manually (without using numpy), independent of how silly this HR evaluation is.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Correlation and Regression Lines - A Quick Recap #1
You are viewing a single comment's thread. Return to all comments →
This is a really badly designed Hackerrank evaluation on an interesting question.
1) You can get full points for just printing out the hardcoded text answer 0.145 ಠ_ಠ
2) The question says to read from stdin but then the "submit" button doesn't come with any stdin test cases, so you need to hardcode the input as a list into your solution.
There are plenty of ways to make this an interesting problem - what if you need to read in from a file? What if the input can be any arbitrary number of lists?
The calculation itself is a worthwhile exercise - I suggest doing it manually (without using numpy), independent of how silly this HR evaluation is.