正确的样例解释的 Markdown 应该为:
- The segment a[2…4] is selected and is shifted to the left by 2 : [2,5,1,4,3]⟶[2,4,5,1,3]
- The segment a[1…5] is then selected and is shifted to the left by 3 : [2,4,5,1,3]⟶[1,3,2,4,5]
- After that the segment a[1…2] is selected and is shifted to the left by 1 : [1,3,2,4,5]⟶[3,1,2,4,5]
- And in the end the segment a[1…3] is selected and is shifted to the left by 1 : [3,1,2,4,5]⟶[1,2,3,4,5]
1. The segment $ a[2 \ldots 4] $ is selected and is shifted to the left by $ 2 $ : $ [2, {\color{blue}{5, 1, 4}}, 3] \longrightarrow [2, {\color{blue}{4, 5, 1}}, 3] $
2. The segment $ a[1 \ldots 5] $ is then selected and is shifted to the left by $ 3 $ : $ [{\color{blue}{2, 4, 5, 1, 3}}] \longrightarrow [{\color{blue}{1, 3, 2, 4, 5}}] $
3. After that the segment $ a[1 \ldots 2] $ is selected and is shifted to the left by $ 1 $ : $ [{\color{blue}{1, 3}}, 2, 4, 5] \longrightarrow [{\color{blue}{3, 1}}, 2, 4, 5] $
4. And in the end the segment $ a[1 \ldots 3] $ is selected and is shifted to the left by $ 1 $ : $ [{\color{blue}{3, 1, 2}}, 4, 5] \longrightarrow [{\color{blue}{1, 2, 3}}, 4, 5] $