You are viewing a single comment's thread. Return to all comments →
I did two things to make it work for all the test cases:
1) commented out printoptions that were recommended in the previous examples, but were not needed in this question
2) added rounding to 11th decimal place to calculate std: print(numpy.round(numpy.std(arr, axis = None),11))
Hope thois helps
Thanks Edvard
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Mean, Var, and Std
You are viewing a single comment's thread. Return to all comments →
I did two things to make it work for all the test cases:
1) commented out printoptions that were recommended in the previous examples, but were not needed in this question
2) added rounding to 11th decimal place to calculate std: print(numpy.round(numpy.std(arr, axis = None),11))
Hope thois helps
Thanks Edvard