Urgent.News

What's breaking now, across thousands of outlets.

Tech

What it does to your brain after solving Leetcode for more than 5 months?

TLDR: Solved atleast 1 question daily. Creating and following a list to identify and understand patterns Exhilaration, Exhaustion, and the will to continue. Writing this after spending more than 6-7 hours across two days on a single problem. The feeling Feeling mentally drained because of that Leet code 2772 Feels good and unrealistic at the same time (as a personal acheivement) that this much…

After solving Leetcode problems for more than five months, the brain undergoes a unique set of experiences. Daily practice and the creation of a pattern-identifying list help maintain focus and motivation. The exhilaration and exhaustion felt during intense problem-solving sessions contribute to a sense of accomplishment, even when time seems to slip away unnoticed.

Working through complex problems can be mentally draining, leaving one feeling physically exhausted after hours of focused effort. However, the gratification of overcoming challenges provides a sense of unrealized achievement. The structure of the topics covered may appear slower than anticipated, but the depth of understanding remains satisfactory.

Some problems may still prove difficult despite prior exposure, but the rebound effect is strong, making subsequent attempts easier to tackle. At times, the brain may feel stuck, struggling to make progress. However, it is crucial not to let demotivation overwhelm the progress. Persistence in the face of failure is essential, as success is not final, and failure is not fatal.

To avoid getting stuck, it is important to set boundaries and not spend excessive time on a single problem. If a problem proves too challenging, taking a break and solving easier problems can help refresh the mind. Revisiting previously solved problems can provide a lighter mental load and a sense of progress.

Coming back to the problem the next day with renewed energy can aid in continued grinding towards the solution. Remembering the reasons for pursuing LeetCode challenges helps maintain focus and reduces cortisol levels. For instance, the author of this account struggled with Leetcode problem 2772, but after grueling hours, they finally comprehended the concept, albeit intending to revisit the solution later.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Reliable Webhooks in TypeScript: Idempotency, Deduplication and Failure Recovery

Webhook providers deliver at least once, not exactly once. That single fact explains most webhook bugs: duplicate emails, double-credited balances, orders marked paid twice.

  • Implement authenticity by verifying provider's signature using raw body and HMAC digest
  • Record events in PostgreSQL table with unique constraint on provider's event ID
  • Separate acknowledging from processing by returning 2xx status and using row lock

We Didn't Install the Package. We Built the Search Engine Instead.

The constraint What if you had to build a useful search engine, but you weren't allowed to install anything? That was the constraint I chose for the Zero Dependency Hackathon.

  • Developed FORGE search engine using only Python's standard library
  • Crash-safe local document search with desktop and CLI interfaces
  • GitHub repository contains source code, tests, and demo dataset

More from Thursday 1 October →