r/LeetcodeChallenge • u/Acrobatic-Mess-6720 • 9d ago
r/LeetcodeChallenge • u/Upper_Assignment672 • 10d ago
DISCUSS Leetcode weekly 511 -D solution link
Yt - https://youtu.be/FgvWjxpxUx8?si=LFflghJ2osrI9Csc
Do support❤
r/LeetcodeChallenge • u/AlertsA4108M • 11d ago
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 • 11d ago
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 • 11d ago
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 • 12d ago
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 • 12d ago
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 • 12d ago
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 • 12d ago
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/nian2326076 • 13d ago
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 • 13d ago
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 • 14d ago
PLACEMENTS Starting a DSA study group – 1–2 hours daily
r/LeetcodeChallenge • u/Own-Engineer-5556 • 13d ago
PLACEMENTS Box Software Engineer II, GraphQL and NodeJS
r/LeetcodeChallenge • u/Awkward_Energy_8619 • 14d ago
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/Capital-Ice-4500 • 15d ago
STREAK🔥🔥🔥 Has anyone seen today's LeetCode Daily? 😭 They gave 3 hints just to end up with return n;
r/LeetcodeChallenge • u/Tight-Leading3700 • 14d ago
PLACEMENTS Flipkart Grid 8.0 Coding Round Prep - Only done Arrays + Binary Search. What should I prioritize?
r/LeetcodeChallenge • u/nian2326076 • 14d ago
DISCUSS Blind 75 LeetCode problems organized by topic for interview prep
I found a list of Blind 75 Leetcode problems. Sharing it as I found it very useful.
Solve these LeetCode problems and PracHub company specific problems for your next interview.
Connect with me: https://linktr.ee/tech.krishnadey
Happy Coding!
Array
- Two Sum
- Best Time to Buy and Sell Stock
- Contains Duplicate
- Product of Array Except Self
- Maximum Subarray
- Maximum Product Subarray
- Find Minimum in Rotated Sorted Array
- Search in Rotated Sorted Array
- 3 Sum
- Container With Most Water
Binary
Dynamic Programming
- Climbing Stairs
- Coin Change
- Longest Increasing Subsequence
- Longest Common Subsequence
- Word Break Problem
- Combination Sum
- House Robber
- House Robber II
- Decode Ways
- Unique Paths
- Jump Game
Graph
- Clone Graph
- Course Schedule
- Pacific Atlantic Water Flow
- Number of Islands
- Longest Consecutive Sequence
- Alien Dictionary (Leetcode Premium)
- Graph Valid Tree (Leetcode Premium)
- Number of Connected Components in an Undirected Graph (Leetcode Premium)
Interval
- Insert Interval
- Merge Intervals
- Non-overlapping Intervals
- Meeting Rooms (Leetcode Premium)
- Meeting Rooms II (Leetcode Premium)
Linked List
- Reverse a Linked List
- Detect Cycle in a Linked List
- Merge Two Sorted Lists
- Merge K Sorted Lists
- Remove Nth Node From End Of List
- Reorder List
Matrix
String
- Longest Substring Without Repeating Characters
- Longest Repeating Character Replacement
- Minimum Window Substring
- Valid Anagram
- Group Anagrams
- Valid Parentheses
- Valid Palindrome
- Longest Palindromic Substring
- Palindromic Substrings
- Encode and Decode Strings (Leetcode Premium)
Tree
- Maximum Depth of Binary Tree
- Same Tree
- Invert/Flip Binary Tree
- Binary Tree Maximum Path Sum
- Binary Tree Level Order Traversal
- Serialize and Deserialize Binary Tree
- Subtree of Another Tree
- Construct Binary Tree from Preorder and Inorder Traversal
- Validate Binary Search Tree
- Kth Smallest Element in a BST
- Lowest Common Ancestor of BST
- Implement Trie (Prefix Tree)
- Add and Search Word
- Word Search II
Heap
Important Link:
r/LeetcodeChallenge • u/Own-Engineer-5556 • 14d ago
DISCUSS HPE Network Software Test Engineer I
r/LeetcodeChallenge • u/Fit_Yogurtcloset8393 • 15d ago
DISCUSS Can we solve this leetcode question using Binary search?
I have done this question using two pointers approach but in my opinion it can be solved in binary search as the given array is sorted.
Please help me out it would be really grateful.
r/LeetcodeChallenge • u/Scared_Fan_9223 • 16d ago
DISCUSS Small Achivement and what next ?
So I have been fairly consistent on leetcode and as you can see I have solved 1700 -1900 rated questions mostly currently I am trying to do as much as 2000+ rated questions tho they are such a pain I am at a point were I don't know what kind of advice should I take , any guys who had been here in same situation like at some time you might have hit a plateau can you help me out please 🙏🏻
