People are trusting chat gpt too much. They copy paste code (and content) without even understanding what it is exactly doing 🙂It is so annoying at least put some effort into understanding the output you're getting from it🙂
Make a CP template.
- Have some pre-written code so that you don't have to do all the boilerplate stuff like importing libraries and defining common functions.
- Keep those things in your template which you personally use a lot.
Learn about inbuilt data structures and functions.
- Learn about C++ STL as it contains a lot of inbuilt data structures and really efficient functions.
- Learn about some unconventional but heavily used DS in your programming language like ordered sets in C++
Think twice but code just once.
- Make sure your approach is finalised before you start writing any code.
- Make a mind map of all the subproblems before coding.
- Re-thinking an approach is better than testing your wrong approach and finally re-implementing a new approach.
Read the problem statement carefully.
- You don't want to be implementing something unintended.
- Give special emphasis on constraints to avoid coding a solution that gives you TLE or MLE.
Paypal has such a poor UX.
Learn something from Paytm, I don't know what you're doing. Such a big turn off. Every time I have to use Paypal, I get a feeling of cringe.