Microsoft Oa
Anonymous User
159

Could anyone tell the approach to the question if we have been givne the string a and s of equal length. they are very long. we need to reduce the absolute minimum diff between the two by minumum swaps. swaps can be done according to the position contexts. for example index 2 can be swapped only with index 2 ,1 with 1 and so. Covering all edge cases .return the minimum swaps needed

Comments (1)