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.
I dont understand the Swap Query. It says its suppose to provide two consecutive ranges to swap: l1 to r1 and l2 to r2. The issue is... looking at the sample input it does no match the description. e.g. S 5 9 10 10
the range 5 9 is 5 elements while 10 10 is just one... how are we suppose to swap the ranges... or am i missing something?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hamming Distance
You are viewing a single comment's thread. Return to all comments →
I dont understand the Swap Query. It says its suppose to provide two consecutive ranges to swap: l1 to r1 and l2 to r2. The issue is... looking at the sample input it does no match the description. e.g. S 5 9 10 10 the range 5 9 is 5 elements while 10 10 is just one... how are we suppose to swap the ranges... or am i missing something?