You are viewing a single comment's thread. Return to all comments →
st = mid + 1 ed = n - 2 # 1 while (st <= ed): a[st], a[ed] = a[ed], a[st] st = st + 1 ed = ed - 1 # 2
Seems like cookies are disabled on this browser, please enable them to open this website
Zig Zag Sequence
You are viewing a single comment's thread. Return to all comments →