Hamming Distance Discussions | Algorithms | HackerRank
  • + 1 comment

    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?