InterviewSolution
Saved Bookmarks
| 1. |
Rearranging the existing data according to our new requirements is called ________ |
|
Answer» Answer: index[] = [1, 0, 2]; Output: arr[] = [11, 10, 12] index[] = [0, 1, 2] Input: arr[] = [50, 40, 70, 60, 90] index[] = [3, 0, 4, 1, 2] Output: arr[] = [40, 60, 90, 50, 70] index[] = [0, 1, 2, 3, 4] |
|