Reverse Pairs. Ruby implementation


  • 0
    V

    Does anybody have this problem solved in ruby?
    I did it in all ways that I could read / imagine ( AVL BST, BIT, merge) and I got TLE for all solutions.
    Locally each solution took less than 0.5 sec for worst case scenario ( 50000 items, sorted ).


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.