This is becoming complex and tricky for me...
Sorting/Shuffling of two arrays but based on one array sorting
ex arr1[] = {3,5,2,6,1,7}
arr2[] = {4,6,3,2,1,5}
so when we sort both arrays based on arr2 then we get
arr1[] = {1,6,2,3,7,5}
arr2[] = {1,2,3,4,5,6}
here arr2 is sorted and arr1 get shuffled based on arr2 sorting
I want something like this explaination in java ...
Anyone please explain because this is required in lot of questions