If you're like me and read this comment and don't get the math explanation - plain english one is that if you add your points to the class average and your points cause that average to rise - that by default means your score was higher than the average of the class. That's why you don't need to add it in this particular example.
I continously try to optimize every solutions to the maximum readability, maintainabilty and efficiency.
If you find out that any of my solutions can be better, please let me know, I appreciate it ;).
i really didnt want this to be true , but well done .
If you're like me and read this comment and don't get the math explanation - plain english one is that if you add your points to the class average and your points cause that average to rise - that by default means your score was higher than the average of the class. That's why you don't need to add it in this particular example.
If
n == 0
, perhaps arr is the null pointer. You wouldn't want to try access it.This comment is hidden because it contains spoiler information about the solution
No, accessing that element is undefined behavior.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you for the comments!
I continously try to optimize every solutions to the maximum readability, maintainabilty and efficiency.
If you find out that any of my solutions can be better, please let me know, I appreciate it ;).
short and simple soluion. I liked it very much
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...