Suggestion for a better solution!

link: https://ide.codingblocks.com/s/178497

In the problem ā€˜All indicesā€™, although I cleared all the test cases, Iā€™m not sure if my solution is the best possible solution. Please let me know if thereā€™s a possible improvement in the code.

Thanks!

Hey @kapurm17
Amazing solution, great work. Your code is apt for the question asked. Maybe try using ā€œusing namespace std;ā€ to avoid doing std::cin everytime.

I hope Iā€™ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Thnaks a lot for the timely reply! Will do the same!

The page is uavailable