• + 0 comments

    Here is my one line Python solution!

    def saveThePrisoner(n, m, s):
        return (m + s - 1) % n if (m + s - 1) % n != 0 else n