Sort the list below in the order that reconstructs the Lee algorithm.
Lee's algorithm
Reconstructing the algorithm
Report a typo
Put the items in the correct order
Initialize a variable with the label of the target point.
Consider all unlabeled neighbours of points with label and set their labels to .
Repeat two previous steps until the target point is reached.
Consider all neighbours of the current point and move to any with label .
Initialize a variable with .
Set to .
Repeat two previous steps until the start point is reached.
Label the start point with .
Set to .
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.