Demo of neet2leet browser add-on

neet2leet is an add-on for the Firefox browser which helps to navigate from a NeetCode problem to its LeetCode problem with a single click. Without this add-on, it would have taken an additional 8.76 hours to manually map 1126 NeetCode problems to their respective LeetCode problems. In this post I will share the steps that I took to measure the impact and build a solution to achieve it.

Problem statement

NeetCode has well-known DSA roadmaps, and I love how it lets me track my progress visually. However, I prefer to solve the problems on LeetCode for two reasons: its code editor lets me choose my font, and I have a LeetCode Premium subscription (but not a NeetCode one), which gives me access to LeetCode’s “Leet” chatbot.

So, to map each NeetCode question to its LeetCode question, I performed the following steps manually:

  • Step-1: Open the NeetCode problem.
  • Step-2: Copy title.
  • Step-3: Open LeetCode
  • Step-4: Paste copied title into search bar
  • Step-5: Open the search result that matches the exact title

Performing these steps manually took ~28 seconds on average * . At present, there are 1126 questions on the NeetCode platform, and mapping these questions at least once would take an additional 8.76 hours * . My goal was to find a solution that could save these hours, and then multiply the savings by sharing it with a wider audience.

Solution

I have developed neet2leet which is an add-on for the Firefox browser. Once you install the add-on, a button appears next to the problem title. When you click the button, it takes you straight to the matching LeetCode problem. This solution reduces mapping time from ~28 seconds to an instant.

Workflow

Workflow

Alternate approaches evaluated

Shared file

I preferred a browser add-on over an online shared file like Google sheet or similar because a shared file has to be updated by hand. Also, there are very limited options to share it with a wider audience.

Wrapping up

If you study on NeetCode and solve on LeetCode, give neet2leet a try. It turns a 28-second search into a single click on every problem. If it can’t find a problem, or you have an idea to improve it, please open an issue on GitHub.

Appendix-A

I calculated the average time it took to run the manual workflow (defined in Problem statement) by running it 5 times.

Number Time taken (in seconds)
1. 30.26 seconds
2. 27.92 seconds
3. 26.48 seconds
4. 28.96 seconds
5. 24.74 seconds
Total 138.36 seconds

Average = Sum of time taken for all samples / number of samples = 138.36 / 5 = 27.67 seconds = ~28 seconds (rounding up)

Appendix-B

Below is a cost analysis in terms of time investment per NeetCode roadmap. The number of questions on NeetCode may grow in the future.

Roadmap name Number of problems (a) Time per question (b) Total savings (c = a x b) Converted to hours unit (d = c / 3600)
Blind 75 75 28 seconds 2,100 seconds 0.58 hours
NeetCode 150 150 28 seconds 4,200 seconds 1.17 hours
NeetCode 250 250 28 seconds 7,000 seconds 1.94 hours
NeetCode All 1126 28 seconds 31,528 seconds 8.76 hours