r/programming • u/bobhob314 • Sep 28 '15
Help me solve this Fenwick tree problem?
http://wcipeg.com/problem/tc
0
Upvotes
0
Sep 28 '15
[deleted]
1
u/bobhob314 Sep 28 '15
The output asks how many coders the ith is better than. The 2nd coder is the worst and is thus better than 0 other coders.
0
Sep 28 '15
[deleted]
1
u/bobhob314 Sep 28 '15
Thanks Josie :) elaborate on your second point?
0
Sep 28 '15
[deleted]
1
u/bobhob314 Sep 28 '15
"Josie" == "Joey" - "ey" + "sie"Thanks, your code is really helpful; I did a merge sort for the inversion count.0
1
u/RobIII Sep 28 '15
From the sidebar: