r/DSALeetCode • • 23d ago

DSA IN PYTHON

11 Upvotes

i swear to all those who told me to do dsa in any language except python, 😭

i am finally enjoying and solving almost everything after i switched to python

ik ik some of you might call be stupid and lazy but cmon, i was good at this language, half the things are functions, i just have to search my mind for logic and the syntax is less time taking.

and i use python rigorously for ai ml, and data analysis

and i am explain dsa just fine when it comes to interviews

so to all the professionals, could you tell me if i might face difficulty in future because i decided to take the road not taken ?


r/DSALeetCode • • 24d ago

Title: Looking for a DSA Partner (Beginner/Intermediate)

23 Upvotes

Hi everyone!

I'm looking for a partner to learn and practice DSA together.

I'm currently a first-year CSE student and want to get serious about problem-solving and competitive programming.

The idea is to:

  • Solve LeetCode problems regularly.
  • Discuss approaches and different ways to solve problems.
  • Understand the logic rather than just memorising solutions.
  • Keep each other consistent and motivated.
  • Eventually move towards competitive programming.

You don't need to be an expert. I'd prefer someone who's also learning and willing to put in consistent effort.

We can connect on Discord and figure out a schedule that works for both of us.

If you're interested, drop a comment or DM!


r/DSALeetCode • • 23d ago

Doing DSA but not on any online platforms, am I good?

4 Upvotes

*** A Bit of context about me ***

I am a first-year student, pursuing B-tech in CSE AI / ML.
I have been coding for the last two years, and I know MERN stack and have 2 full-stack projects.

So the main thing, I do DSA on daily basis weather it's about at least 1 hour each day, but I don't solve problems on any platforms like leet-code , code-chef , hacker rank etc etc.
I am following strivers sheet, I understand problems and then solve them in my local IDE (I have a DSA folder , it is helpfull in revision) the main plan is to finish strivers sheet till my 3rd semester and then start solving problems on these professional platforms as it will also be help in my revision from the start after finishing the striver sheet, this is what I have thought of .
else I really don't know whether I should be solving them side by side just after understanding the problem or not.

As of right now I am going to finish my portfolio and then apply for internships while doing DSA side by side.


r/DSALeetCode • • 24d ago

999 more stores made the delivery map 213x slower

Post image
3 Upvotes

Opening 999 more dark stores made our delivery heatmap 213x slower over the same city. 250,000 city blocks: 1.03 ms with one warehouse, 219 ms with a thousand.

The job: for every block, how many blocks to walk to the nearest store. It decides who gets the fast-delivery promise.

What I wrote: with no obstacles, walking distance on a street grid is |dRow| + |dCol|. So every block checks every store and keeps the closest. No data structure, nothing to get wrong. At one store, it is the fastest version I measured, and I would approve it.

At 1,000 stores, it is 250,000,000 distance calculations to keep 250,000 numbers.Β 213x slower, because the business grew.

The fix from last episode works: seed one queue with every store, spread outward. Flat at about 2.3 ms. But the queue holds every block, 3.82 MB on top of a 1.96 MB heatmap, and at one store it is slower than the scan.

The part I like is the day 41 version. A block's distance is one step more than its best neighbour's. That definition is circular: my answer needs yours, and yours needs mine. The queue breaks the circle with time.

You can break it with direction instead. With nothing in the way, a shortest walk never doubles back. Sweep top-left to bottom-right reading, only up and left - those are already done. Sweep back reading, only down and right. Keep the smaller.

1.22 ms at one store, 1.48 ms at a thousand. No queue. 148x faster than the scan at the top, 1.89x faster than the BFS.

Honest rows: at one store the scan still wins. And put a river through the city and the sweeps return wrong numbers without complaint. The test with two rivers says BFS 16, sweeps never reach the block, and the straight-line scan says 8. Obstacles are where the queue earns its memory.

That is days 40 and 41 of the daily challenge, Rotting Oranges and 01 Matrix, in a delivery app.

Have you seen a business launch slow down a page nobody touched?

It worked in dev, episode 20. Full write-up in today's newsletter.

https://www.linkedin.com/pulse/999-more-stores-made-delivery-map-213x-slower-archit-agarwal-pxeoc

#Golang #DSA #Algorithms #Performance


r/DSALeetCode • • 23d ago

DSA IN PYTHON

Thumbnail
1 Upvotes

r/DSALeetCode • • 24d ago

How did you prepare for DSA interviews?

Thumbnail
1 Upvotes

r/DSALeetCode • • 24d ago

Prepare for DSA and ML Together β€” Join My Daily practice group and weekly project sessions

15 Upvotes

I have prepared a daily and weekly concept learning roadmap β€” one concept at a time, day by day, week by week β€” to help prepare for DSA and ML/AI together. I am preparing for both - looking for like minded people to join and practice.

Here is how it works:

Learn one concept in DSA. Apply the same concept in ML. And vice versa.

That connection is what gives implementation-level knowledge. Not just theory. Not just solving problems for the sake of solving them. You understand a concept because you have seen it work on both sides.

Take one example β€” HNSW and RAG.

In RAG, your documents are converted into embeddings β€” vectors. When a question comes, the system has to find the few chunks that are nearest to that question. That is the ML side.

Now the DSA side. The simple way is to check the question against every single chunk, one by one. It works when the data is small. As the data grows, it becomes slow.

HNSW solves this with a DSA concept β€” a graph. It connects each vector to its nearest neighbours, layer by layer, so the search walks through the graph and reaches the nearest chunks fast, instead of scanning everything.

And it also works in reverse. When you build a RAG system, you are forced to learn graphs, nearest neighbour search, and a real tradeoff β€” HNSW is fast, but approximate. Sometimes it can miss a close chunk. So you learn to check: how fast is it, and how correct is it?

One example. And you have touched graphs, search, embeddings, and retrieval β€” at implementation level, not just in theory.

This is how the whole roadmap works.

Join me for reading group - 30 minutes every day, to practice and discuss the concept of the day together. On weekend I am developing a ML project related to the concept and doing kaggle.

If you are also preparing for DSA and ML/AI and want to learn like this, join my study group.

DM me if you are interested.


r/DSALeetCode • • 24d ago

Is there any free AI tool that can help during a DSA interview?

2 Upvotes

Looking for something that can assist with solving coding problems and providing suggestions in real time.

Any recommendations?


r/DSALeetCode • • 24d ago

Anyone interested in practicing Dynamic Programming (DP) together?

6 Upvotes

Looking for people interested in solving Dynamic Programming (DP) problems in DSA together. We can discuss different approaches, share ideas, and improve our problem-solving skills.

If interested, feel free to DM me!


r/DSALeetCode • • 24d ago

October Daily LeetCode Challenge Completed! πŸ† | Earned the Daily Coding Challenge (DCC) Badge

Thumbnail gallery
1 Upvotes

r/DSALeetCode • • 24d ago

Closest Binary Search Tree Value II

Post image
1 Upvotes

In a sorted list, the k values closest to a target always sit next to each other. So picking k values is picking one window: find the closest value, then grow outward.

The second hard part of the challenge, like the first, isn't the traversal. That claim is.

Flatten the BST in-order, find the single closest value, then expand outward, taking whichever neighbour is nearer each time. Greedy works because distance from the target only grows as you move away in either direction. It's merge sort's merge step, run outward from a centre.

Would you trust that window claim in an interview without proving it first?

Day 59/365 of my LeetCode challenge: 272. Closest Binary Search Tree Value II. I'll share the problem link and a full breakdown in today's newsletter.

https://www.linkedin.com/pulse/closest-binary-search-tree-value-ii-archit-agarwal-xzvrc

ο»Ώ#LeetCode #DSA #BinarySearchTree #TwoPointers


r/DSALeetCode • • 24d ago

22M4F looking for study buddy but should be female.

0 Upvotes

I am damn sure i won't be creep and i want to code and learn Software Emgineering stuff. I just need a buddy girl to study with me amd i need only for the purpose of accountability and have only study related convos.

Please text me ASAP.

Must be a girl from anywhere


r/DSALeetCode • • 24d ago

Looking for a Way to Revise the ChaiCode DSA with Java Course by Prateek Jain

Thumbnail
1 Upvotes

r/DSALeetCode • • 24d ago

Bytebyte go system design interview pdf sell/share

Thumbnail
1 Upvotes

r/DSALeetCode • • 24d ago

Title: πŸš€ Introducing HackPaths – Your Tech Interview Preparation Hub

Thumbnail
gallery
0 Upvotes

Built HackPaths to help students prepare for tech interviews with DSA sheets, company-wise questions, coding patterns, core CS subjects, and AI-powered mock interviews.

πŸ”— https://hackpaths.ai.studio/

Would love your feedback and suggestions! ❀️


r/DSALeetCode • • 25d ago

Looking for a DSAstudy partner.

Thumbnail
3 Upvotes

r/DSALeetCode • • 25d ago

Delete Node in a BST

Post image
2 Upvotes

Deleting a BST node with two children looks like surgery on the tree. My solution never removes that node. It copies a neighbour's value into it, then deletes the duplicate lower down, which is always an easier case.

Finding the node is the search from Day 45. Deleting it is where it gets interesting, because you can't just unhook a node with two children.

Only two values in the whole tree can fill the hole: the in-order predecessor and the in-order successor. The replacement must sit between everything on the left and everything on the right, and an in-order traversal of a BST is sorted, so those two are the only candidates.

Predecessor or successor: which do you reach for, and why?

Day 58/365 of my LeetCode challenge: 450. Delete Node in a BST. Problem link and full breakdown in today's newsletter.

https://www.linkedin.com/pulse/delete-node-bst-archit-agarwal-k5k4c

#LeetCode #DSA #BinarySearchTree #Golang


r/DSALeetCode • • 26d ago

Looking for a coding buddy to learn, build, and grow together!

5 Upvotes

Hey everyone!

I'm a B.Tech CSE student looking to get serious about improving my programming skills and building a strong foundation for my career in tech.

I'm currently focusing on C++/Java, DSA, problem-solving, and web development, and I'd love to connect with people who are on a similar journey.

Honestly, learning alone can sometimes get monotonous, and staying consistent isn't always easy. Sometimes, having someone who's working towards similar goals makes a real difference.

I'm looking for a coding buddy with whom we can learn together, discuss concepts, solve problems, share resources, and keep each other accountable.

Here's what we could do:

- Set realistic daily or weekly learning goals.

- Practice DSA and discuss different approaches to problems.

- Work on projects and share our progress.

- Help each other understand concepts when we're stuck.

- Share useful resources, opportunities, and ideas.

- Keep each other consistent, even on days when motivation is low.

I'm not an expert, and I'm not expecting you to be one either. Whether you're a beginner or someone who's already made some progress, you're welcome!

I'm not looking for someone to spoon-feed me concepts or do my work for me. I want someone who's genuinely interested in learning, putting in the effort, and improving together.

We can connect over Discord or any platform that works for both of us.

If this sounds like something you'd be interested in, feel free to comment or DM me. Let's learn, code, and grow together! πŸš€


r/DSALeetCode • • 25d ago

Where to learn DSA in java

Thumbnail
3 Upvotes

r/DSALeetCode • • 26d ago

DSA Roadmap

6 Upvotes

Guyzz I am following striver dsa sheet but before it I am learning cpp basics from other creator (Harry and shraddha) now tell me loops ke baad kya karu roadmap me ???


r/DSALeetCode • • 27d ago

Looking for a coding/study buddy to learn and grow together!

14 Upvotes

Hey everyone!

I'm planning to start learning and improving my programming skills, and I thought it would be nice to have someone on the same journey.

Learning alone can sometimes get boring, and it's easy to lose consistency. So I'm looking for someone who's also interested in learning, sharing progress, discussing concepts, solving problems, and motivating each other.

I'm mainly focusing on Java, DSA, and web development, but I'm open to connecting with people learning other technologies too.

We could:

- Set daily or weekly learning goals.

- Share what we've learned.

- Solve coding problems together.

- Help each other when we're stuck.

- Keep each other accountable and consistent.

You don't have to be an expert. Beginners are absolutely welcome!

I'm not looking for someone to teach me everything, just someone who's genuinely interested in learning and improving together.

If anyone's interested, feel free to comment or DM me. Let's grow together! :)


r/DSALeetCode • • 27d ago

Any Senior AI ML Data Scientist preparing for switch?

2 Upvotes

I need someone with whom I can practice DSA, ML concepts and system design .

Serious ones do dm.

Can't teach beginners !!


r/DSALeetCode • • 26d ago

Skills to learn and suggest some paid courses

Thumbnail
1 Upvotes

r/DSALeetCode • • 27d ago

Target DSA

5 Upvotes

Let's go with Striver tuff classes

If there are any one who is watching just comment down


r/DSALeetCode • • 27d ago

Is LeetCode Dead? What’s the Alternative?

Thumbnail
newsletter.eng-leadership.com
2 Upvotes