We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
2 id l1 r1 l2 r2: Swap two consecutive fragments of the idth array, the first is from the lth1 number to the rth1, the second is from the lth2 number to the rth2;
please explain with an example if possible
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Two Array Problem
You are viewing a single comment's thread. Return to all comments →
2 id l1 r1 l2 r2: Swap two consecutive fragments of the idth array, the first is from the lth1 number to the rth1, the second is from the lth2 number to the rth2;
please explain with an example if possible