|
0
My intuition is to "shift" the original array, like:
It couldn't complete in 2 flip. Instead, we can get a "reversed and shift" array by 2 flip:
|
|
0
And some of them even cheat for rating, it's crazy. |
|
0
Totally understand why you scared, after I checked your submissions. Because you solved E on the first try, but failed on test 1 for 5+ times on D. |
|
0
s_i < t_i means no cycle, so we can visit checkpoints in order, I guess? |
|
+8
I'm newbie, but E is the most interesting binary search problem I've ever seen. |