curr: 0 1 0 curr: 2 1 1 curr: 1 2 2 curr: 1 3 3 curr: 2 3 4 26 26 35 35 35