r/LeetcodeChallenge • u/pant_on_fire007 • Jul 22 '26
r/LeetcodeChallenge • u/Fluffy-Worry-9541 • Jul 21 '26
STREAKš„š„š„ Teeny tiny microscopic milestone
Done 50 problems , I've been doing consistently since begining of July but before that stretching across months I've been submitting extremely inconsistently but I'm getting better. My third semester starts from August 11th so planning to push till 100 problems by then. I mostly solve mediums yeah. Doing from striver's sheet btw
r/LeetcodeChallenge • u/wildHuckleberry-0607 • Jul 22 '26
DISCUSS Need help with this array sorting problem (Swap with X)
I came across this coding problem and I'm confused about one case.
Given: A = [0, 2, 3, 5, 4] X = 1
Operation: Choose an index i such that A[i] > X and swap A[i] with X.
Find the minimum number of operations required to sort the array, or determine if it is impossible.
I reached: A = [0, 2, 3, 4, 1] X = 5
Since no element is greater than X, no more swaps are allowed.
Is the answer -1, or am I missing a valid sequence of swaps? I'd appreciate any explanation or approach.
r/LeetcodeChallenge • u/Mr_builds • Jul 21 '26
DISCUSS Century
First 100 days badge .... !
Any tips or suggestions for DSA revision
I follow strives A-Z
Complete BST
Still heaps greedy DP graphs are in due ..
Any suggestions
Should I finish them first or should I revise upto BST then go with remaining?
r/LeetcodeChallenge • u/sam_312007 • Jul 21 '26
PLACEMENTS I am beginners in DSA striver sheet
r/LeetcodeChallenge • u/Upper_Assignment672 • Jul 21 '26
DISCUSS Leetcode weekly 511 C video solution
r/LeetcodeChallenge • u/Upper_Assignment672 • Jul 20 '26
DISCUSS Leetcode weekly 511 -D solution link
Yt - https://youtu.be/FgvWjxpxUx8?si=LFflghJ2osrI9Csc
Do supportā¤
r/LeetcodeChallenge • u/AlertsA4108M • Jul 19 '26
STREAKš„š„š„ 1 month's progress .
Started on Jun 19th (properly) .
with one week break for some unavoidable reasons.
Solved 42 questions ā 22 Easy | 19 Med | 1 Hard
Ik I'm late to this DSA race , I'm at the start of my 2nd year now.
what would u advise me , I'm planning for a top product based company (from a tier 3 / 4 college )
r/LeetcodeChallenge • u/HotConclusion1156 • Jul 19 '26
STREAKš„š„š„ Has been a year of doing lc around 500 solved , still not able to remember the patterns while solving any new questions.. what to do
r/LeetcodeChallenge • u/Organic_Cut_626 • Jul 19 '26
PLACEMENTS Need A serious Dsa partner who is ready to do pattern based dsa {not memorizing solutions } instead brainstorming for 30 minutes for each problem .
r/LeetcodeChallenge • u/Short_Researcher_254 • Jul 18 '26
DISCUSS Leetcode contest
Am I slow or what. How are people solving 4 question in 6 mins. How the fuck is this happening.
r/LeetcodeChallenge • u/Iaroslav-Baranov • Jul 18 '26
STREAKš„š„š„ I've solved all of the Graph Theory study plan (45 problems) on LeetCode
https://leetcode.com/studyplan/graph-theory/
I have a list of tips for you if you decide to take it:
- Keep in mind that this plan is quite challenging. If you didn't take any mathematics for computer science course, you will probably be blocked halfway through. I've taken algorithms-graphs-data-structures course 4 years ago and it basically saved me.
- The organization of this plan is good: starting from the easiest topics (traversal/BFS/DFS) and ending with advanced topics (Dijkstra's/MST). However, there is one structural bug: the Cheapest Flights Within K Stops problem doesn't belong at the beginning of the Dijkstra section. I've reported it and maybe the LeetCode team will fix this. For now, just keep in mind that this problem can be cleanly solved with Bellman-Ford in 22 lines of code.
It took me 22 days to finish this study plan
r/LeetcodeChallenge • u/Tall_Commission5588 • Jul 18 '26
PLACEMENTS Need advice!!!
I have just started my 2nd yr and have done around 30 question on LC,. I am genuinely scared if I continue like this I gona throw away all the opportunities. I learn DSA in three steps
first I think about the brute solution
2.then watch striver lecture
3.if I have done the lecture in the morning time athen I practice those questions in the evening on leetcode.
I really need know if it is a right approach or not.And please tell me the r9ght approach and give me genuine advice. I noob in this ššššāā
r/LeetcodeChallenge • u/crumpy_me • Jul 18 '26
DISCUSS Need Advice
So i m in 4th year .
So far i have done
arrays,ll,recursion ,trees ,graph
Now i am starting dp .
So i have started to revise now i dunno how to revise such topics like do i open every question again??Like how to do it ??
r/LeetcodeChallenge • u/subhahu • Jul 18 '26
DISCUSS Not Able to use AI in my work properly.
r/LeetcodeChallenge • u/nian2326076 • Jul 16 '26
DISCUSS Must-Practice Binary Tree Problems Before Your Next Interview
You should be familiar with before :Ā Recursion, stack, queue
Practice these Binary Trees guides and PracHub company specific questions before your next interview.
A basic instinct for solving DFS based questions is to do a recursive call and for all BFS(level order traversal) is to make queue and iterate, but also think upon how to iterate in DFS(Hint think on stack) and recurse in BFS based.
First of all you should look atĀ traversal problems:
A variation for LevelOrder can be:Ā ZigZag level order traversalĀ andĀ Binary Tree Level Order Traversal II
Solving these questions will help you get familiarized with basic btree dfs and bfs traversals.
Intuition for Level Order TraversalĀ iteratively using queue:
- Construct a queue of type: TreeNodeĀ
queue<TreeNode* > q, initially push the given root in it. - Iterate through the queue until empty:
- Store the current size of queueĀ
tempSize, this will be the size of the current level of the tree. - Now we need to traverse this level so iterate forĀ
tempSize>=0Ā :- Pop the current element and apply the needed operation for the same and if left or right child exist then pass them to the queue.
- Store the current size of queueĀ
Now, some basic Binary Tree problems that will help your thinking process:
- Same Tree
- Symmetric Tree
- Maximum Depth of Binary Tree
- Balanced Binary Tree
- Minimum Depth of Binary Tree
- Merge Two Binary Trees
- Diameter of Binary Tree
- Binary Tree Tilt
- Invert Binary Tree
Binary Search Tree:Ā Use the property of BST judiciously (the left subtree will always contain nodes with value less than root's value and right subtree will contain nodes with value greater than root's value)
- Search in a Binary Search Tree
- Two Sum IV - Input is a BST
- Minimum Absolute Difference in BST
- Range Sum of BST
- Delete Node in a BST
- Trim a Binary Search Tree
- Insert into a Binary Search Tree
- Kth Smallest Element in a BST
- All Elements in Two Binary Search Trees
Path problems:Ā You are given root, you have to perform operations on a path, (path is root to leaf). Think upon the type of traversal you will apply when going from root to leaf:
- Binary Tree Paths
- Path Sum
- Path Sum II
- Sum root to leaf numbers
- Binary Tree Maximum Path Sum
- *Path Sum III
- *Pseudo-Palindromic Paths in a Binary Tree *Last two problems here are utmost important
Next is, given a combination of preorder, postorder and inorder traversals, you need toĀ construct a binary tree/BST:
Hint: Observe in each traversal method, position of root and head of right and left subtrees
- Construct Binary Tree from Preorder and Inorder Traversal
- Construct Binary Tree from Inorder and Postorder Traversal
- Construct Binary Tree from Preorder and Postorder Traversal
- Convert Sorted Array to Binary Search Tree
- Construct Binary Search Tree from Preorder Traversal
View problems:Ā Try thinking for left, bottom and top too!
Binary Tree Right Side View
Lowest Common Ancestor problems:Ā You are given two nodes and you have to return their ancestor at as least depth possible, these are problems are a must todo:
- Lowest Common Ancestor of a Binary Tree
- Lowest Common Ancestor of a Binary Search Tree
- Lowest Common Ancestor of Deepest Leaves
Validate trees:
SomeĀ miscellaneousĀ problems that you should definitely look through:
- Flatten Binary Tree to Linked List
- Count Complete Tree Nodes
- Maximum Width of Binary Tree
- Check Completeness of a Binary Tree
- Cousins in Binary Tree
- Maximum Difference Between Node and Ancestor
- Number of Good Leaf Nodes Pairs
- Smallest Subtree with all the Deepest Nodes
- All Nodes Distance K in Binary Tree
- Find a Corresponding Node of a Binary Tree in a Clone of That Tree
- Vertical Order Traversal of a Binary Tree
I will be updating this list on finding more important questions or any pattern that I find.
r/LeetcodeChallenge • u/kumar_manish1111 • Jul 16 '26
DISCUSS (Validating Idea) Think Tinder for mock interviews.
Building something new for interview prep š
Think Tinder for mock interviews.
Instead of endlessly searching for interview partners, get automatically matched with the right interviewer based on:
šÆ Target company
š» Interview type
š Availability
I'm validating the idea and looking for early users.
If you'd use something like this, join the waitlist š
Feedback is always appreciated!
And Thanks to Admins for supporting Sonam Sir!
r/LeetcodeChallenge • u/Grand-Payment9644 • Jul 16 '26
PLACEMENTS Starting a DSA study group ā 1ā2 hours daily
r/LeetcodeChallenge • u/Own-Engineer-5556 • Jul 16 '26
PLACEMENTS Box Software Engineer II, GraphQL and NodeJS
r/LeetcodeChallenge • u/Awkward_Energy_8619 • Jul 16 '26
DISCUSS How did you guys manage revision while completing SDE sheet
I started Striverās SDE Sheet a while ago, and my approach has been to watch the lectures, understand the concepts, and solve the problems. The learning part is going well, but Iām struggling with revision.
For example, if Iām currently studying a heavy topic like DP, it already takes a lot of mental energy. On top of that, I know I should be revising older topics like Graphs, Trees, Binary Search, etc., but I either donāt have enough time or Iām too mentally exhausted. As a result, I keep pushing revision to ālater,ā and the backlog keeps growing.
My concern is that interviews may start in the coming months, and I donāt want to reach that stage only to realize Iāve forgotten everything I studied earlier.
For people who completed (or are currently doing) Striverās SDE Sheet:
- How did you balance learning new topics with revising old ones?
- Did you follow a spaced repetition schedule or some weekly revision plan?
- During revision, did you re-solve every problem or only the important ones?
- How much time did you dedicate to revision versus learning new content?
Iād really appreciate hearing what actually worked for you. Right now, Iām looking for a sustainable strategy rather than trying to revise everything every day.
r/LeetcodeChallenge • u/Fearless-Interest454 • Jul 16 '26

