It is better to encourage yourself constantly and throughout the day. If you do this daily, your subconscious will be drawn to positive thoughts, and you will become accustomed to thinking hard.
This, if done frequently, can help boost your confidence. So the best thing to do is trust yourself so that a positive signal is sent to your subconscious. When you encourage yourself well, it creates a positive feeling that helps you achieve your goals.