Example of a valid input:
6 3 4 2 1 7 9 10 8 5
With corresponding output:
L V R
1 2
1 2 4
2 3 4
3 4 5
1 5 8
3 6 7
6 7 9
7 8 10
8 9 10
9 10
Implementation of TwinTrees data structure, introduced by Serge Dulucq and Olivier Guibert in 1998
Example of a valid input:
6 3 4 2 1 7 9 10 8 5
With corresponding output:
L V R
1 2
1 2 4
2 3 4
3 4 5
1 5 8
3 6 7
6 7 9
7 8 10
8 9 10
9 10
Implementation of TwinTrees data structure, introduced by Serge Dulucq and Olivier Guibert in 1998
MIT License