New Year Chaos

  • + 0 comments

    It’s important to note that during processing, instead of letting the wrong person move back, the focus should be on bringing the correct person forward. After each step of the iteration, the person in the current scanning position should be sorted.

    For example, given [2 3 1 4 5]: If '2' is moved back, the result will be: [3 2 1 5 4]

    This accidentally allows '3' to gain an additional bribe. Been struggling with this for a while, hope this helps.