Print Unique Elements of an array and check equilibrium of an array in CPP

preview_player
Показать описание
Here is the detailed code with instructions that,
1. How to print only unique or distinct numbers out of an array using CPP.
2. How to check whether a given array is equilibrium or not. If it is equilibrium then code will return its equilibrium index.
Thanks
Рекомендации по теме