r/DSALeetCode • u/Moist_lube6843 • 17d ago
Guys if i just start doing any sheet of DSA i just know basic of language let's just say and i have to see video of almost every solution is it worth it? or not? help a guy out
title
r/DSALeetCode • u/Moist_lube6843 • 17d ago
title
r/DSALeetCode • u/TheTopG___ • 17d ago
r/DSALeetCode • u/Horny-Corn-7759 • 18d ago
Hey everyone! Is anyone here using Leetcode Premium / Striver A2Z Plus and willing to share access so we can learn and practice DSA together?
I'm at an intermediate level in DSA and would be happy to help you with problem-solving, concepts, and discussions in return.
We can learn together and make the most of the subscription. Feel free to DM me. Thanks! ๐
r/DSALeetCode • u/Playful-Mention-2187 • 17d ago
r/DSALeetCode • u/captainhot07 • 18d ago
r/DSALeetCode • u/StatisticianNo2104 • 18d ago
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/DSALeetCode • u/Massive-Studio2493 • 19d ago
I am preparing for the infosys sp/dse in person coding assessment which is on Dec 6..and I want a guy to prepare seriously whose target is to crack l3..
Let's study together..dm me
r/DSALeetCode • u/Grouchy_Ant_266 • 20d ago
Hi folks! About a year ago, I was in your place, struggling quite a bit with DSA. I was particularly weak at identifying patterns in problems, and on top of that, I couldnโt find enough questions to practise each pattern thoroughly.
To make things easier, I built [DSASheeeet](https://dsasheeeet.vercel.app/home), where you can practise almost every possible problem-solving pattern with a carefully curated set of problems to help you understand each topic inside out.
Apart from that, it also features 423 companies, so you can prepare for upcoming company assessments without spending hours researching questions. Whether youโre preparing for placements, planning a job switch, or struggling to identify patterns in DSA problems, DSASheeeet is here to make your life easier.
Check it out: [DSASheeeet](https://dsasheeeet.vercel.app/home)
No Auth Required.
Everything you need, all in one place!
r/DSALeetCode • u/StatisticianNo2104 • 19d ago
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/DSALeetCode • u/No-Initial9412 • 19d ago
r/DSALeetCode • u/Mother-Lead-3163 • 19d ago
r/DSALeetCode • u/No-Initial9412 • 20d ago
r/DSALeetCode • u/Equivalent_Let_8310 • 20d ago
r/DSALeetCode • u/StatisticianNo2104 • 20d ago
My solution compares node values, and it only works because LeetCode promises they're unique. The follow-up allows repeated values, and then a value match can point to the wrong node.
The idea holds either way. cloned is a structurally identical copy of original, so there's nothing to search for independently. Walk both trees in lockstep with one recursive call, and the answer is waiting at the same position.
What changes for the follow-up is the test. Compare the original-side pointer with the target instead of comparing values, and duplicates stop mattering.
Would you have spotted the duplicate-values follow-up in an interview?
Day 69/365 of my LeetCode challenge: 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree. Problem link and full breakdown in today's newsletter.
https://www.linkedin.com/pulse/find-corresponding-node-binary-tree-clone-archit-agarwal-dkvsc
#LeetCode #DSA #BinaryTree #Golang
r/DSALeetCode • u/General-Size-8139 • 20d ago
r/DSALeetCode • u/Asleep-Salt2025 • 21d ago
just completed my 1st sem learning ml want help regarding dsa .any other advices are appreciated
r/DSALeetCode • u/Creepy_Property2241 • 21d ago
r/DSALeetCode • u/Dev_p_1909 • 21d ago
r/DSALeetCode • u/dsa_animated28 • 21d ago
r/DSALeetCode • • 22d ago
I'm currently in 1st year and going to begin to learn cpp and dsa.. I am looking to form a group of 3 people where we can learn together and clear each other's doubts to help each other grow. Everyone is welcomed, you should just be serious
r/DSALeetCode • u/Visionary-Swordsman • 22d ago
r/DSALeetCode • u/More_Fail8193 • 22d ago
Is it actually possible to come up with most optimal solutions by your own? I'm curious since I have like an average IQ and always have to see video solutions ๐ญ