Are you working on a writing project and need to keep track of your character and word counts? Or maybe you're a developer who wants to add file analysis capabilities to your Python scripts? Either ...
# elements to the right of nums[i]. # To the right of 5 there are 2 smaller elements (2 and 1). # To the right of 2 there is only 1 smaller element (1). # To the right of 6 there is 1 smaller element ...