Hi,
I have started leetcode recetly and going though wasy problems. Though I am able to come up with a working solution using brute force but not able to come up with optimized solution.
Can you please help me on this ? How I can approach to find a optimized solution ?