Jul 28, 2020 2:16 AM
" I was doing something like (startof(t[i]) - startofPrev(s, t[i],0) ) %2 == 1. It was ordering it t1, t0, t3, t2 but the distance between t1 and t0 was even. " Really? Then it is a bug. The Prev/Next are the ones of the sequence in the solution, so if the solution is t, t, t, t, the the ...