Challeges -Arrays

Can we get the most optimized solution for each challenge we complete? I want to know if there is any other optimized approach to solve these problems.

@Pravinsh12 After finishing the challenge, you can unlock the editorial and see the indented approach. You can also raise a doubt for the challenge, if you feel, you are missing something.