CHUNRIBU

Just for a Record of Knowledge

View the Project on GitHub

🏠HOME

Get The Original Index of a Sorted List


# Python Implementation
def sorted_index(_list):
    return sorted(range(len(_list)), key=lambda k: _list[k])