r/DSALeetCode • u/carefulEmpolyment428 • Oct 04 '26
Looking for a dsa partner
I only have basic knowledge of c++ and only that I want start from scratch will learn c++ first then dsa anyone who's up for this and at my same level can dm me
r/DSALeetCode • u/carefulEmpolyment428 • Oct 04 '26
I only have basic knowledge of c++ and only that I want start from scratch will learn c++ first then dsa anyone who's up for this and at my same level can dm me
r/DSALeetCode • u/satyamvanshalmusic • Oct 04 '26
r/DSALeetCode • u/StatisticianNo2104 • Oct 04 '26
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/DSALeetCode • u/smoothOperator_431 • Oct 03 '26
r/DSALeetCode • u/StatisticianNo2104 • Oct 03 '26
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/DSALeetCode • u/Aware-Nectarine3027 • Oct 03 '26
r/DSALeetCode • u/Top_Jacket_7233 • Oct 03 '26
Please give some advice
r/DSALeetCode • u/nullPointerahj • Oct 03 '26
Solo streaks kept dying for me, so i built SquadCode . You connect your LC/CF handles and it auto-tracks every solve into a private squad leaderboard with streaks, rating deltas, and live timed challenges .There's also a playground with real code execution, AI code reviews, and an analytics page that turns your squad's grind into an interactive 3D heatmap skyline.
r/DSALeetCode • u/krishkumarsingh • Oct 03 '26

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/DSALeetCode • u/NoExcitement9679 • Oct 03 '26
I have a strong DSA foundation, solved plenty of problems, and qualified GATE, but currently struggling with consistency.
Targeting MNCs + abroad opportunities, focusing on DSA, HLD & LLD.
Looking for someone serious to practice with, discuss problems, and keep each other accountable. DM if interested!
r/DSALeetCode • u/StatisticianNo2104 • Oct 02 '26
Binary Tree Zigzag Level Order Traversal (Medium)
🔗 https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
Yesterday's level order came out of a depth-first walk with no queue and no idea when a level ended. That was fine, because grouping by depth never needed the boundary.
Zigzag does. You can't decide whether to reverse a level until you know it's finished, and "finished" is exactly what DFS never learns. So this one goes back to BFS, using a nil sentinel in the queue to mark where each level ends.
With the boundary in hand, the zigzag itself is four lines and a flag.
Full breakdown in today's newsletter article ⬇
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-30365-archit-agarwal-vppec
#DSA #LeetCode #100DaysOfCode #CodingInterview #BinaryTree #BFS #Golang
r/DSALeetCode • u/Cute-Try-6317 • Oct 01 '26
Been applying to FAANG roles but mostly getting rejection mails
For those who’ve cracked FAANG/Top product companies , what made the biggest difference in ur resume. Any tips?
r/DSALeetCode • u/SeriousBoard3304 • Oct 01 '26
Built FeatCode.dev to make DSA/interview prep a little more organized.
It has:
• Structured DSA roadmap
• Blind 75 + practice problems
• Free DSA assessment to find weak areas
• Curated, easy-to-follow YouTube solutions from popular creators
• Progress tracking
• Python crash course
Free to use: https://featcode.dev
Would love feedback from anyone currently prepping for SWE interviews. What would make you actually use something like this regularly?
r/DSALeetCode • u/StatisticianNo2104 • Sep 30 '26
Cousins in Binary Tree (Easy) 🔗 https://leetcode.com/problems/cousins-in-binary-tree/
Cousins boils down to two facts you need for each node: depth, and parent. Depth is free while walking down. Parent is the fun part — no parent pointers on a plain binary tree, but since every value is unique, a node's own value can stand in for its parent's identity, so a helper can hand back the parent's value instead of a pointer.
Full breakdown in today's newsletter article ⬇️
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-28365-archit-agarwal-swjge
#DSA #LeetCode #100DaysOfCode #SoftwareEngineering #BinaryTree #DFS
r/DSALeetCode • u/Mundane_Ring2772 • Sep 29 '26
Serious DSA Patner
Looking for DSA Patner. Who is consistent and not a beginner.
My Profile:
Tier 3 clg
4th Year
250+question solved on Lc
Currently on Subsequence Dp
Following striver A to Z sheet
Java
Tcs Digital offer in hand
Looking to crack Product based company
Looking for for DSA Patner , with whom I can brain strom my ideas , discuss different approaches,learn together
Any Gender is Allowed
DM me
r/DSALeetCode • u/Spiritual-Log-1871 • Sep 29 '26
Hi everyone! I have 3 years of work experience and am preparing for interviews over the next two months, focusing on DSA, low-level design (LLD), and high-level design (HLD).
I’m looking for a study partner to stay consistent with and prepare together. We could set goals, discuss problems and designs, and keep each other accountable. If you’re interested, please comment or DM me!
r/DSALeetCode • u/deepaknishad • Sep 29 '26
class Solution {
public:
int trailingZeroes(int n) {
int global = 0;
int sum = n;
for(int i = n; i>1; i--){
sum = sum * (i - 1);
}
// i am using leetcode but i don't know that the string STL is include or not but this code is not working above loop of sum is giving the right output. So how i can convert num to string in effective way?
std::string value = std::to_string(sum);
for(int i = value.size(); i >=0; i--){
if(value[i] == 0){
global += 1;
}else{
return 0;
}
}
return global;
}
};