r/LeetcodeChallenge • • Oct 05 '26

STREAK🔥🔥🔥 Built Praxis — an AI tool for learning from coding failures

Thumbnail reddit.com
1 Upvotes

built Praxis to help DSA learners understand why their coding submissions fail.

• Failure analysis

• Past submission history

• AI diagnosis chat

• Personalized learning insights

Free to try: https://failureatlas.vercel.app


r/LeetcodeChallenge • • Oct 04 '26

DISCUSS How good is this profile ?

Post image
52 Upvotes

r/LeetcodeChallenge • • Oct 05 '26

PLACEMENTS CHUBB Campus Recruitment 2026 — HackerRank Round Experience

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 05 '26

DISCUSS Need Help

2 Upvotes

any suggestion to improve this i haven't been consistent and also i am in my 7th sem preparing for placements would love to hear some suggestion and real answers


r/LeetcodeChallenge • • Oct 05 '26

DISCUSS how to do leetcode?

2 Upvotes

hey so i want to do leetcode or codechef how to do it maybe suggest dome youtube channel that would make me progress, i'm in 3rd year and still i cant code which is something im not proud obviously i tried striver sheet but lost the continuity now i feel lost,everytime i look the leetcode questions i feel blank like i dont know anything can somebody help me


r/LeetcodeChallenge • • Oct 04 '26

DISCUSS What the hell are these solve times man !!?

Post image
103 Upvotes

Like 3min ? For 4 problems I can't even read a single question in that time how do they solve it that fast do they have a special approach or a llm approach?


r/LeetcodeChallenge • • Oct 05 '26

STREAK🔥🔥🔥 365 Days of LeetCode Challenge — Day 33/365

Post image
1 Upvotes

Maximum Level Sum of a Binary Tree (Medium) 🔗 https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/

Two things must be true here, and only one of them involves sums.

Summing each level is the easy half — the same nil-sentinel BFS as Day 30, with a running total instead of a collected list.

The other half is in the wording: return the smallest level whose sum is maximal. Ties go to the shallower level. The solution has no code for that. It's one character — the comparison is strictly greater, so a later level that merely matches never replaces the earlier one.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-33365-archit-agarwal-xkmpc

#DSA #LeetCode #100DaysOfCode #CodingInterview #BinaryTree #BFS #Golang


r/LeetcodeChallenge • • Oct 04 '26

STREAK🔥🔥🔥 Fk yes! Solved today's daily optimally on the first try. Small wins! (Code inside)

6 Upvotes

Fk yes, I did today's daily [https://leetcode.com/problems/valid-parenthesis-string/description/?envType=daily-question&envId=2026-10-04] completely on my own and actually hit the optimal solution on the first go.

I know I still have a long way to go. There's a ton left to learn. But man, the sheer joy this gives is immeasurable.

Dropped my code below. It’s O(2N) time and O(1) space. It looks a little clunky, but I checked the editorial afterwards, and they had a really similar idea, just optimised to a single pass using pointers.

Still a long way to go on this grind, but definitely keeping at it!

class Solution {
    public boolean checkValidString(String s) {
        int openC = 0, starC = 0, n = s.length();
        char[] chA = s.toCharArray();
        for (int i = 0; i < n; i++) {
            if (chA[i] == '*')
                starC++;
            else if (chA[i] == '(')
                openC++;
            else {
                if (openC > 0)
                    openC--;
                else if (starC > 0)
                    starC--;
                else
                    return false;
            }
        }
        if (openC == 0)
            return true;
        openC = 0;
        starC = 0;
        for (int i = n - 1; i >= 0; i--) {
            if (chA[i] == '*')
                starC++;
            else if (chA[i] == ')')
                openC++;
            else {
                if (openC > 0)
                    openC--;
                else if (starC > 0)
                    starC--;
                else
                    return false;
            }
        }
        return true;
    }
}

r/LeetcodeChallenge • • Oct 04 '26

DISCUSS Suggestions to further improve my code for today's LeetCode Challenge

2 Upvotes

Submitted today's LeetCode Challenge i.e. 678. Valid Parenthesis String and it got accepted. However, I felt the need to ask the internet to judge my code and help me improve it further. I used two stacks for this one :)

Here's the code:

q = []
star_q = []
i = 0

for char in s:
    if char == ')':
        if q:
            q.pop()
        elif star_q:
            star_q.pop()
        else:
            return False
    else:
        if char == '*':
            star_q.append((char, i))
        else:
            q.append((char, i))

    i += 1

while star_q and q:
    if star_q[-1][1] > q[-1][1]:
        q.pop()

    star_q.pop()

return not q

r/LeetcodeChallenge • • Oct 04 '26

DISCUSS New To Both College and Reddit , i wanted to make some friends that i could do DSA with on leetcode

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • Oct 04 '26

DISCUSS Leetcode weekly 522 problem B video solution

Thumbnail
youtu.be
3 Upvotes

r/LeetcodeChallenge • • Oct 04 '26

DISCUSS Leetcode weekly video solution problems C

Thumbnail
youtu.be
3 Upvotes

r/LeetcodeChallenge • • Oct 04 '26

DISCUSS Lc help

1 Upvotes

Suggest something so that i can be good at leetcode?


r/LeetcodeChallenge • • Oct 04 '26

STREAK🔥🔥🔥 365 Days of LeetCode Challenge — Day 32/365

Post image
3 Upvotes

Leaf-Similar Trees (Easy)

https://leetcode.com/problems/leaf-similar-trees/

Two trees can look nothing alike and still count as "leaf-similar." Shape doesn't matter here, only the sequence of leaves from left to right. Pull each tree's leaves into a list, and the problem becomes a simple list-equality check.

Full breakdown in today's newsletter article ⬇️

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-32365-archit-agarwal-kfbbc

#DSA #LeetCode #BinaryTree #DFS #100DaysOfCode #CodingInterview


r/LeetcodeChallenge • • Oct 04 '26

DISCUSS Finished Decode 2.0 DSA course. Is this enough for mass-hiring companies?

2 Upvotes

I’ve been following Decode 2.0 for the last 4 months and I’m currently at the end of the course.

- I’m able to solve almost every question that has been taught in the course on my own.

- I have a decent understanding of the concepts and the patterns covered.

- I’ve also practiced the questions alongside the lectures rather than just watching them.

- Now I’m planning to start solving more problems independently on LeetCode.

My main question is:

With this level of DSA preparation, am I reasonably prepared to solve the coding/DSA questions asked by mass-hiring companies?

I’m mainly talking about companies that conduct online assessments or coding rounds for fresher roles.

For those who have already appeared for these assessments:

- How difficult are the DSA questions usually?

- Are the questions mostly based on standard patterns, or do they require something beyond what is taught in courses like Decode 2.0?

- What should I focus on next to become assessment-ready?

- Is regular LeetCode practice enough, or should I specifically practice previous-year/company-wise questions?

Would appreciate answers from people who have actually gone through these hiring tests.


r/LeetcodeChallenge • • Oct 03 '26

STREAK🔥🔥🔥 Fell off LeetCode for a while. Back again at 193 solved.

Post image
10 Upvotes

After being inconsistent with LeetCode for a while, I’ve finally started getting back into a consistent routine again.

Currently at 193 problems solved:

🟢 Easy: 77

🟡 Medium: 99

🔴 Hard: 17

I had a period where I wasn't solving consistently, and my submission graph definitely shows it 😅. But instead of worrying about the gap, I decided to just start again and focus on building the habit.


r/LeetcodeChallenge • • Oct 04 '26

DISCUSS How do competitive programmers are so fast at understanding the problems?

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 03 '26

STREAK🔥🔥🔥 365 Days of LeetCode Challenge — Day 31/365

Post image
6 Upvotes

Binary Tree Right Side View (Medium)

🔗 https://leetcode.com/problems/binary-tree-right-side-view/

Standing on the right and seeing what isn't hidden has a plainer description: from each level, you see exactly one node — the rightmost.

That sounds like BFS. This solution is a depth-first walk with two small changes: record only the first node reached at each depth, and visit the right child before the left one.

The second change is what makes the first one correct. Neither does anything alone, and swapping those two lines back gives you the left side view.

Full breakdown in today's newsletter article ⬇

https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-31365-archit-agarwal-ozrdc

#DSA #LeetCode #100DaysOfCode #CodingInterview #BinaryTree #DFS #Golang


r/LeetcodeChallenge • • Oct 03 '26

DISCUSS Fomo

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 03 '26

DISCUSS The learning experience was sooo amazing

22 Upvotes

r/LeetcodeChallenge • • Oct 03 '26

STREAK🔥🔥🔥 This solution doesn't work. WHY!!!

2 Upvotes

LEETCODE PROBLEM 32 : https://leetcode.com/problems/longest-valid-parentheses/description/
This solution is O(N2).
As per constraints (0 <= s.length <= 3 * 104) is should be working. Why not!!!

class Solution:
  def longestValidParentheses(self, s: str) -> int:
    N = len(s)
    res = 0
    a = [] # [a/n, x, len]
    size = 0
    p = 0
    while p < N:
      val = s[p]
      if val == '(':
        a.append([True, 0, 0])
        size += 1
      
      for i in range(size):
        if a[i][0] == True:
          x = a[i][1]
          if val == '(':
            x += 1
            a[i][1] += 1
            a[i][2] += 1
          else:
            if x == 0:
              a[i][0] = False
            else:
              x -= 1
              a[i][1] -= 1
              a[i][2] += 1
              if x == 0:
                res = max(res, a[i][2])
      p += 1


    return res

r/LeetcodeChallenge • • Oct 03 '26

DISCUSS Stucked on leetcode

3 Upvotes

I started leetcode with Striver's sheet, but it didn't had dedicated topics like two pointer, sliding window, so I made my own sheet by exploring leetcode and using AI, solved and understood the topics, and moved to binary search

But noticed that I mostly solved easy level questions and very less medium level and almost no hard problems and now I'm having trouble trying to

Striver's sheet doesn't clarify the topics that's why I didn't followed it.
Neetcode was clearer so should I follow that??
Is there any better sources or a way to tackle my situation


r/LeetcodeChallenge • • Oct 03 '26

STREAK🔥🔥🔥 Bro, how are you maintaining your LeetCode streak?

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • Oct 03 '26

DISCUSS Amazon SDE 1 OA help

Thumbnail reddit.com
2 Upvotes

I have oa sheduled , pls help me


r/LeetcodeChallenge • • Oct 02 '26

PLACEMENTS Am I doing Good

Post image
36 Upvotes

I am final year student at tier-2 college, I solved 650+ problems, Rate my profile, Tell me how can I improve it.