In the name of Allah(God), Most Gracious, Most Merciful.
My strategy to solve ad-hoc and observation based problems:
- Observe what is GIVEN
- Observe what to FIND or PROVE or both
- Find a GREEDY or BRUTEFORCE solution
- Test it for SMALLER cases
- Check CONSTRAINTS
- Observe the PATTERS and FORMULAS
- Make the solution OPTIMAL, if it is NOT
- PROVE the CORRECTNESS of the solution
- Check it for EDGE cases
I think if make a habit of following the strategy, inshaAllah(by the grace of almighty God), I will improve. I will appreciate any suggestion on my strategy.