[Solved] People Dancing Algorithm
Current answer The previous answer assumed that the movement of people to their new positions would be sequential, i.e. people would start moving together within the same sequence. The answer below assumes that the movement within the same sequence is instantaneous. It uses two arrays to map people from their old positions to their new … Read more