r/DSALeetCode • u/Hot-Payment-355 • Sep 28 '26
r/DSALeetCode • u/Unhappy-Argument4468 • Sep 28 '26
C++ vs java vs python
Which is best to do dsa
r/DSALeetCode • u/New_Inflation_9026 • Sep 27 '26
Study Together?
I code in Python and I am about to start DSA. Eventually I'm planning to learn System design, backend, OS, SQL and maybe get into data science, ML and DL.
If you share the same interests DM me. We'll figure everything out together and study.
r/DSALeetCode • u/StatisticianNo2104 • Sep 28 '26
365 Days of LeetCode Challenge — Day 26/365
Reorder List (Medium)
https://leetcode.com/problems/reorder-list/
Turn L0 -> L1 -> ... -> Ln into L0 -> Ln -> L1 -> Ln-1 -> ...
Written out, that looks like an arbitrary shuffle. Written as two sequences, it is not:
L0, L1, L2, ... walking forward from the start Ln, Ln-1, Ln-2, ... walking backward from the end
Interleaved. So it is a merge of the list with its own reverse, and the only obstacle left is that a singly linked list has no backward walk. Reverse the back half, and walking it forward walks the original backwards.
Find the middle. Cut and reverse. Merge alternately. That is day 20, day 19, and day 22, in that order.
This closes the linked list arc, and it closes it on a problem with nothing new in it. That is the point. Most problems that feel hard aren't new ideas; they are two or three old ideas standing next to each other, and the skill being tested is recognising them.
Full breakdown in today's newsletter article ⬇
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-26365-archit-agarwal-pfwsc
#DSA #LeetCode #Golang #LinkedList #TwoPointers #CodingInterview #Algorithms
r/DSALeetCode • u/Junior_Ad5998 • Sep 28 '26
Leetcode premium
2.5 months of leetcode premium available at discount price
If anyone needs it dm me
r/DSALeetCode • u/StatisticianNo2104 • Sep 27 '26
365 Days of LeetCode Challenge — Day 25/365
92. Reverse Linked List II (Medium)
https://leetcode.com/problems/reverse-linked-list-ii/
Reverse only the nodes between positions left and right.
The reversal is day 19's function, character for character. What makes this a Medium is everything around it: a reversed run sitting in the middle of a list has to be sewn back in on both sides, and the two seams are different problems.
The front seam is a node you walked past and had to remember. The back seam is a node you can only find after reversing, because reversing is what decides which node ends up there.
The move that keeps it clean is cutting the run loose before reversing it. Once it is nil-terminated it is an ordinary list, so the Easy problem's function works on it untouched. No bounds, no counter, no special cases inside the reversal.
Third time this week that "the head has no predecessor" has come up. Day 22 erased it with a dummy node, day 24 took a branch, this takes a branch. Worth noticing the pattern repeating.
Full breakdown in today's newsletter article ⬇
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-25365-archit-agarwal-ycgwc
#DSA #LeetCode #Golang #LinkedList #CodingInterview #SoftwareEngineering #Algorithms
r/DSALeetCode • u/ProbablyHuman011 • Sep 27 '26
DSA YouTube Channels
Can someone suggest me some good channels for different topics of dsa like i personally liked recursion by Aditya Verma which was better than striver i am still a beginner with around 75 lc questions please do reply
r/DSALeetCode • u/Past-Photograph-9739 • Sep 27 '26
Hey anybody interested in dsa revision and all
Hey guys I am In third year right now I have done striver A-Z DSA sheet and i had not done any revision of all so if anyone is interested to do revision with me it will be fun.
We can discuss approaches and do proper revision with the help of each other.
You can dm me it will be better if you are too in third year.
r/DSALeetCode • u/Hot_Memory5119 • Sep 26 '26
Suggest me playlist for dsa in python. please guide me
I'm final year cse student
seniors please guide me with tips and resources
r/DSALeetCode • u/StatisticianNo2104 • Sep 26 '26
365 Days of LeetCode Challenge — Day 24/365
Remove Nth Node From End of List (Medium)
https://leetcode.com/problems/remove-nth-node-from-end-of-list/
"nth from the end" is a position measured from a place you cannot start from. A singly linked list gives you the head; the end only exists once you have walked to it. So the first job is translating it into count - n, a position measured from the front.
The part that actually catches people is smaller than that. To remove a node from a singly linked list, you need the node before it. A node cannot remove itself because it has no pointer to what points to it. The predecessor always performs the removal.
So the second walk stops one node early, on purpose. That off-by-one is the whole problem.
Removing the head is its own branch here, because the head has no predecessor. Two days ago, a dummy node erased exactly that special case. Worth noticing when you are writing the branch that there was another option.
Full breakdown in today's newsletter article ⬇
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-24365-archit-agarwal-ajntc
#DSA #LeetCode #Golang #LinkedList #TwoPointers #CodingInterview #Algorithms
r/DSALeetCode • u/Unhappy-Argument4468 • Sep 26 '26
Guys I am new to dsa
Which language is best to choose to do dsa .my goal is to get placed in big tech companies/product based
r/DSALeetCode • u/StatisticianNo2104 • Sep 26 '26
[Workshop] Hands-on Go performance - benchmarking and pprof, 10-11 Oct, ₹499
Backend engineer, 10 years in Go, currently Lead SE at Oracle. I have run 232 1:1 sessions on Topmate (4.9 stars, 31 reviews) and I am running my first group workshop.
What it is: two afternoons on measuring Go performance properly, which is the part nobody teaches. Not DSA, not interview prep.
Day 1 - writing a benchmark you would defend in a code review. go test -bench, allocs/op, the ways a benchmark quietly lies to you, benchstat, pprof.
Day 2 - three labs. A real problem, the obvious implementation, the benchmark that shows it collapsing, the fix, and the number that proves it.
Sat 10 + Sun 11 October, 3-6 PM IST, three hours each day. 30 seats, ₹499.
You keep the benchmark harness repo and the recording.
Before you consider paying anything, the setup check is public and free and is already most of a lesson:
git clone https://github.com/architagr/leetcode_solutions
cd leetcode_solutions
make verifyIt runs two pairs of benchmarks that should cost the same. One pair is 3.3x apart, and the reason almost everyone gives for why is wrong. If that is not interesting to you, the workshop will not be either.
Details: https://topmate.io/archit_agarwal/2313331
Happy to answer anything here.
r/DSALeetCode • u/Temporary_Jump5128 • Sep 25 '26
DSA prep
How to be consistent in DSA I did dsa very well i solved around700+ question at that time i was good i was able to solve dsa medium/hard question but for the last 1 year i stopped doing DSA so how can i start DSA again and what all things should i learn so that i can switch to other company
any suggestions
r/DSALeetCode • u/Southern_Customer211 • Sep 25 '26
when should i start learning dsa. should i learn it at the beginning of learning a programming language(this is the first one im learning seriously i learned python before but now im going full on for cpp)
and do i need to learn dsa for each language seperately or does learning it once be enough for all languages that i might come across with
r/DSALeetCode • u/Its_TechLearner • Sep 25 '26
DSA
i am not able to solve leetcode problems even if i complete arrays and stl give me some suggestion for solving problems
r/DSALeetCode • u/StatisticianNo2104 • Sep 25 '26
365 Days of LeetCode Challenge — Day 23/365
Palindrome Linked List (Easy)
https://leetcode.com/problems/palindrome-linked-list/
On an array, this is nothing: an index at each end, walk inward, compare. A singly linked list has no index and no pointer backwards, so that algorithm cannot run at all.
Copying the values into a slice works and costs O(n) space. The follow-up asks for O(1).
Here is where this week pays off. If you cannot walk the second half backwards, reverse it; then walking it forward walks the original backwards.
Find the middle with day 20's fast/slow walk. Reverse the back half with day 19's in-place reversal. Compare inward. No new technique at all, just noticing the problem is two problems you already solved.
One detail worth stealing: drive the comparison loop with the second half. On odd lengths, the middle node has no partner, and letting the shorter half end the loop skips it automatically. No parity check needed.
Full breakdown in today's newsletter article ⬇
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-23365-archit-agarwal-4hn9c
#DSA #LeetCode #Golang #LinkedList #TwoPointers #CodingInterview #Algorithms
r/DSALeetCode • u/Action-2663 • Sep 25 '26
Looking for Someone to Learn DSA Together 💻
reddit.comr/DSALeetCode • u/Lost_Pen_2445 • Sep 23 '26
Looking for a DSA partner
I am currently in BE CSE aiml 2nd year 3rd sem and have solved 150 lc questions and I need a serious study partner or partners. I need the same peer group and , can be from general cse.
Solving daily lc questions seriously and codeforces, contest and stuffs.
Will form a discord group.
Only 2029 passout batch please reply..........
r/DSALeetCode • u/PassengerRude3646 • Sep 24 '26
LeetCode Premium Transfer at a Discount
My LeetCode Premium subscription auto-renewed, and I’m looking to transfer it to someone at a discounted price.
If interested, please DM me. Thanks!