TCS NQT coding question Date : 14th May 2024 Shift : 1 Like || share || comment || Follow

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

1. Sort the array.
2. Initialize sum=0.
3. Run a loop from i=0 to i<size-1.
4. If arr[i] not=arr[i+1], sum+=arr[i]

nilanjanpradhan