DEV Community

Mukilan Palanichamy
Mukilan Palanichamy

Posted on

My journey in Competitive programming

Hello, Friends! Today I have solved three problems on LeetCode. Single Number, First Missing Positive, and Next Greater Element III. We all commit a lot of the same mistakes that we are going to cover. Like, when we get an easy problem, we try to skip it or apply the known method and quickly finish it and forget. But then, use resources to see whether the solution you came up with is the most efficient one. If it's not, take time to learn the more efficient solution.

Single Number is an easy problem, and I knew one approach. But I was curious to know what was the most efficient solution. When I got it, I was really surprised to see that the problem can be solved in such an efficient manner.

Similarly, while solving problems First Missing Positive and Next Greater Element III, it is required that the focus should be at creating a good logic basis then break it down this process will make it easier and therefore help in solving problems and, of course, develop better answers.

I hope that my experience is also helpful to you.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay