Rosalind - Sorting by Reversals

rosalind

Problem:

Please find the problem here.

Solution:

As we have already pre-computed the shortest path in the previous problem, all we have to present the shortest path.

Code: