Amagi Overall Interview Questions + Coding Solutions – codewindow.in

Hot Topics

Amagi Solution

Technical Round

In this solution, for each element in the array, its corresponding index (which is abs(arr[i]) - 1) is found, and the value at that index is negated. If a number appears multiple times in the array, its corresponding index will have a negative value. Finally, the frequency of each number is calculated based on the values in the array, and the results are displayed.

      

Popular Category

Hot Topics

Go through our study material. Your Job is awaiting.

Categories