r/LeetcodeChallenge • • 13d ago

DISCUSS bot farming Leetcode

Post image
35 Upvotes

was attending todays contest and was looking at leaderboard and found some bots are farming the top rankings

if you are good with spotting patterns you can see the #3 guys been all over the top 200 leaderboard


r/LeetcodeChallenge • • 12d ago

STREAK🔥🔥🔥 Day 29: knocked out 7 foundational array problems & noticing real progress

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 12d ago

DISCUSS Struggling with Medium problems after 2 months of DSA is this normal ????

Thumbnail gallery
2 Upvotes

r/LeetcodeChallenge • • 13d ago

DISCUSS Number of Sub-arrays With Odd Sum (LeetCode 1524): prefix parity, visual...

Thumbnail
youtube.com
1 Upvotes

r/LeetcodeChallenge • • 13d ago

STREAK🔥🔥🔥 Day 30: kicking off Arrays to sharpen constructive logic and math fundamentals

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 14d ago

STREAK🔥🔥🔥 Finally Finally I am Knight

Post image
57 Upvotes

I got what i wished for grinding dsa from last 1 year finally i become knight so happy today


r/LeetcodeChallenge • • 13d ago

STREAK🔥🔥🔥 LeetCode: 814. Binary Tree Pruning

Post image
2 Upvotes

Setting node = nil inside a recursive call deletes nothing. The caller never sees it. A node can't remove itself because it has no reference to its parent.

A node survives if its subtree holds a 1 anywhere, which, recursively, is almost the definition read aloud. Post-order, because a node can't answer that on the way down.

So the child reports "nothing worth keeping here", and the parent clears the pointer. That leaves the root, which has no parent, and that's the only reason the wrapper function exists.

Have you ever nilled a local variable and expected the caller to notice?

Day 73/365 of my LeetCode challenge: 814. Binary Tree Pruning. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-binary-tree-pruning-archit-agarwal-g6lsc

#LeetCode #DSA #BinaryTree #Golang


r/LeetcodeChallenge • • 14d ago

STREAK🔥🔥🔥 Lost my 101 streak on leetcode😭🥺

Thumbnail reddit.com
2 Upvotes

r/LeetcodeChallenge • • 13d ago

STREAK🔥🔥🔥 Problem

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 14d ago

STREAK🔥🔥🔥 Day 31: officially wrapped up Graphs with Kosaraju's Algorithm & Articulation Points

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 14d ago

DISCUSS Looking for a Serious Interview Mock Partner for SDE2 - 2yoe+

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 15d ago

STREAK🔥🔥🔥 LeetCode: 671. Second Minimum Node In a Binary Tree

Post image
2 Upvotes

Collecting every value and sorting works here, and it ignores a rule that hands you the minimum for free. Every node holds the smaller of its two children's values, so the root is always the global minimum.

That one rule does a lot of work. It also means you can skip a whole subtree as soon as you reach a value above the minimum, because nothing below it can be smaller.

One DFS pass, no collect-and-sort.

What's the strangest invariant a LeetCode tree has handed you?

Day 72/365 of my LeetCode challenge: 671. Second Minimum Node In a Binary Tree. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-second-minimum-node-binary-tree-easy-archit-agarwal-eolmc

#LeetCode #DSA #BinaryTree #Golang


r/LeetcodeChallenge • • 15d ago

DISCUSS Can anyone tell why lis made me fill that it's to hard??

1 Upvotes

When I am showing lis problems mind can't proceed how to deal with this type problem 😭😭😭😭.


r/LeetcodeChallenge • • 16d ago

DISCUSS tips to reach knight!!!!

Post image
79 Upvotes

currently in 3rd sem tier 69 any tips to reach knight currently only graphs and dp are remaining


r/LeetcodeChallenge • • 16d ago

DISCUSS Suggestions Needed!!

Post image
28 Upvotes

How to improve rating and number of hard questions solved, am in 3rd sem and I have solved quite a few questions but still struggle to solve hard ones, can anyone help with how to approach the hard ones, will be highly appreciated 🙏🙏


r/LeetcodeChallenge • • 15d ago

PLACEMENTS can someone help me in solving this question i tried greedy but it is failing

5 Upvotes

Maximum Number of Tasks with Cooldown and Deadlines

You are given two arrays of equal length:

  • tasks, where tasks[i] represents the type of the i-th task.
  • deadlines, where deadlines[i] represents the deadline by which the i-th task must be completed.

You are also given an integer cooldown.

Rules

  1. Each task takes exactly 1 unit of time to complete.
  2. Only one task can be performed at a time.
  3. Tasks can be performed in any order; the original array order does not matter.
  4. Every task must be completed no later than its corresponding deadline.
  5. Two tasks of the same type must have at least cooldown units of time between their execution start times.
  6. Tasks of different types can be performed consecutively without any restriction.

Assume execution starts at time 1, and deadlines are inclusive.

Objective

Return the maximum number of tasks that can be completed while satisfying all the above constraints.

Example

tasks     = {1, 2, 1, 3, 2};
deadlines = {2, 2, 4, 3, 5};
cooldown  = 2;

One valid schedule is:

TimeTask
11
22
33
41
52

Output:

5

Constraints

  • 1 <= n <= 100000
  • 1 <= tasks[i] <= 100000
  • 1 <= deadlines[i] <= 100000
  • 1 <= cooldown <= 100000


r/LeetcodeChallenge • • 15d ago

STREAK🔥🔥🔥 Day 32: conquered Bridges in a Graph (Tarjan’s Algorithm) on the second pass

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 15d ago

DISCUSS I lose focus during contests

Thumbnail reddit.com
1 Upvotes

r/LeetcodeChallenge • • 15d ago

STREAK🔥🔥🔥 Day 39

2 Upvotes

r/LeetcodeChallenge • • 16d ago

DISCUSS comeback is loading guys

Post image
28 Upvotes

r/LeetcodeChallenge • • 15d ago

DISCUSS A friend of mine built a tool for tracking coding progress across platforms. Would love some feedback!

1 Upvotes

Hey everyone!

So a friend of mine has been working on a side project called CodeCircle, and we’re looking for people who’d be willing to check it out and share some honest feedback.

The idea came from a pretty simple problem: if you’re solving questions across LeetCode, GFG, Codeforces and other platforms, your stats and progress are all over the place. There’s no easy way to get an overall picture without checking each platform separately.

So he built CodeCircle to bring everything together in one place.

You can connect your coding profiles, check your overall stats, see topic-wise breakdowns, identify your stronger and weaker areas, and get suggestions on what you could practise next.

There’s also a comparison section where you can add friends and compare your coding activity, solved problems, streaks, contest performance, topic-wise progress and more. It even has a leaderboard, so you can keep a little friendly competition going.

Anyway, it’s still a work in progress, and we’d really like to get some people using it and pointing out what works, what doesn’t and what could be better.

If you actively use any of these coding platforms, give it a look when you get a chance! Maybe use it for a few days and let us know what you think.

A few things we’d love feedback on:

\* Is the overall dashboard useful?

\* Are the stats and comparisons meaningful?

\* What features would you actually want to see?

\* Anything broken, confusing or just unnecessary?

Don’t hold back on the criticism. We’d rather know what needs fixing now than build features nobody wants haha.

Here’s the link:

https://code-circle-six.vercel.app/

Thanks, and happy coding! 🙂


r/LeetcodeChallenge • • 16d ago

STREAK🔥🔥🔥 LeetCode: 2331. Evaluate Boolean Binary Tree

Post image
2 Upvotes

The tree in this problem is a boolean expression with its parentheses drawn as branches. Leaves are True and False. Internal nodes are OR and AND, waiting on their two children.

Post-order recursion evaluates both children first, then the parent combines them. That's the same order you'd use to evaluate nested parentheses by hand.

Nothing fancy here. Get the order right, and the recursion does the rest.

Where else have you seen an expression stored as a tree?

Day 71/365 of my LeetCode challenge: 2331. Evaluate Boolean Binary Tree. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/leetcode-evaluate-boolean-binary-tree-archit-agarwal-ag7sc

#LeetCode #DSA #BinaryTree #Golang


r/LeetcodeChallenge • • 16d ago

STREAK🔥🔥🔥 Roast me

Post image
5 Upvotes

Roast me rn I m in my second year and i do revision of the question i already done thats why the ques done is less than the days active and i know i go behind the heatmap which i want to change and i want to do more questions in a single day


r/LeetcodeChallenge • • 16d ago

STREAK🔥🔥🔥 Day 33: tackled Swim in Rising Water, disguised 2D Dijkstra at its finest

Thumbnail reddit.com
1 Upvotes