I still do not understand this?
What is the result should be when the reputation array is: 1,2,3,3,1?
I'm thinking it would be 1+2+3+3+1=10.
While this code would be 1+2+3+2+1=9
Please correct me if I am wrong.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.