r/LeetcodeChallenge

Day 4 of my DSA in Python journey 🚀

Today I solved LeetCode 28 – Find the Index of the First Occurrence in a String.

What I learned:

- String searching

- How substring matching works

- Using Python's ".find()" method

- Manual string traversal using a loop

- Time Complexity: O(n) (using ".find()")

Learning the logic behind each problem and improving my problem-solving skills one day at a time.

#Python #DSA #LeetCode #CodingJourney #100DaysOfCode #LearningInPublic

reddit.com
u/Bhavanashankarabs — 14 hours ago
▲ 42 r/LeetcodeChallenge+1 crossposts

Pattern-wise DSA Roadmap (2026 Edition)

After going through hundreds of interview questions, I noticed that most problems are just variations of a few core patterns.

So I made this roadmap to help anyone who's feeling overwhelmed.

Suggested order:

Arrays & Hashing

Two Pointers

Sliding Window

Binary Search

Linked Lists

Stack & Queue

Trees

Heap

Graphs

Backtracking

Dynamic Programming

Trees

The goal isn't to memorize solutions—it's to recognise patterns.

If you're just starting out, try mastering one pattern before moving to the next.

What pattern did you struggle with the most when learning DSA?

I'd love to hear your suggestions so I can improve this roadmap further.

u/[deleted] — 19 hours ago

WHY THE HELL ARE YOU ASKING LEETCODE HARDS FOR NEW GRAD ROLES!!!

I'm one year out of college and have managed to only get 3 interviews after at least 150 applications. All three of them asked me leetcode hards. How is this the bar for what's essentially an entry level position?? What are you asking senior swes if junior talent is getting the LC hards

Prep resource: Leetcode & PracHub

reddit.com
u/nian2326076 — 1 day ago
▲ 5 r/LeetcodeChallenge+1 crossposts

Visa online assessment sr software engineer

Hi has anyone gave this assessment recently for sr software engineer role at visa it says 90 minutes advanced Hacker rank assessment. What can be expected in this? Any updates will be appreciated.

reddit.com
u/InfamousSoil4008 — 1 day ago

Freshman starting LeetCode - Need guidance on DSA, TUF

Hey Seniors!!

I'm a fresher joining BTech CSE this year. I recently started solving the LeetCode Super Easy problems and have completed 21 out of 25 so far. I know Python fairly well, but I'm confused about what to do next.

I have a few questions:

  • What should my strategy be while using LeetCode?
  • Should I focus on solving more problems or first learn DSA?
  • How do you stay motivated and solve problems consistently every day?
  • What's the difference between TUF (Take U Forward) and LeetCode? Are they the same, or do they serve different purposes?
  • Right now, I only know Python. Is that enough to start DSA, or do I need to learn C++/Java as well?
  • Everyone keeps saying DSA is very important, but I'm confused about what it actually is. Is DSA a programming language? Is it something inside Python, or is it mainly about logical problem-solving?
  • Will DSA be taught properly in college, or should I start learning it on my own? If self-learning is better, when should I start and what resources would you recommend?

I'd really appreciate it if you could share a roadmap or any advice you wish you had received as a first-year student. Any tips for building consistency and improving problem-solving would help a lot.

reddit.com
▲ 22 r/LeetcodeChallenge+15 crossposts

Don't Ignore Need Placement Course Suggestions.. Plz Help 🙏

I'm genuinely confused.

I'm from india . I am currently in my third year starting . Please suggest the best online Placement prep course (tech ) . I know free resources are enough but I want a structured plan and Continuity so I want to enroll in a course.

Please bless me with your honest suggestions

reddit.com
u/lil_4869 — 2 days ago

Tips for solving Hard problems

I solved almost 110 Leetcode Problems but very few are hard problems, I don't understand hard problems because the gap of difficulty between medium and hard is too big, I want you guys to share your experience and things you learn from it. Most welcome if you have advice for me

u/Thomas_108108 — 3 days ago

Is LeetCode and Traditional CS Prep Becoming Obsolete Because of AI?

I’ve been spending the last few nights staring at a medium-level DP problem, and for the first time in years, I felt a real sense of pointlessness.

For the past decade, a lot of us were taught that mastering algorithms, data structures, operating systems, discrete math, and systems design was the path to a stable, high-paying software career. Grind LeetCode, understand graphs, learn DP, pass interviews, get the job.

But looking at the current landscape: layoffs, market saturation, fewer junior openings, and the shift toward AI-assisted and agentic development, I’m starting to wonder whether the version of CS we’ve been preparing for is already disappearing.

I don’t mean “coding is dead” in the dramatic LinkedIn-post sense. But I do wonder if the center of gravity is moving.

A few things I’m struggling with:

1. The LeetCode / Codeforces grind

Why are we still treating speed at solving algorithm puzzles as the main proof of engineering ability when coding speed may no longer be the bottleneck?

If AI can generate, refactor, test, and explain large chunks of code, is the real skill now problem framing, system judgment, debugging, product sense, and knowing what to ask?

2. The value of advanced CS fundamentals

Do algorithms, discrete math, compilers, OS, and distributed systems still provide a mental model that AI cannot replace?

Or are we overestimating their importance because they were the gatekeeping mechanism for the previous generation of software jobs?

3. Universities and curriculum lag

Are universities doing students a disservice by focusing so heavily on traditional fundamentals while the industry is rapidly moving toward AI-assisted engineering?

Or is the point of CS education still to build the foundation underneath whatever tools come next?

4. The changing role of software engineers

Are we moving toward a world where “software engineer” means less “person who writes code” and more “person who defines problems, evaluates AI output, designs systems, debugs failures, and makes product/architecture decisions”?

If so, what should students and early-career engineers actually be optimizing for?

I’m not trying to doompost. I’m genuinely curious whether other people feel this too: like we’re studying for a version of the industry that may not exist much longer.

Is it time to stop grinding the old playbook and start pivoting, or is this just another wave of “CS is dead” hysteria?

Would love to hear from students, new grads, senior engineers, and hiring managers.

reddit.com
u/nian2326076 — 2 days ago
▲ 2 r/LeetcodeChallenge+2 crossposts

I want a leetcode account , if anyone interested please tell

Leetcode account should contain submissions more in 2025 end and 2026 first half .Problems should be submitted mostly in java

reddit.com
u/BigStrong5057 — 2 days ago

a letter of gratitude

Thank u to everyone who has taken time out of their day to remind me I have solved 500 problems already on leetcode. And also have used their time energy and data to comment on my post and dm me and reply to me as well and also make a seperate post about me, thank you again. I appreciate yall's efforts❤

(Also wanted to mention do dsa in cpp before one more person asks me) (I did 500+50 problems on lc in cpp itself) (thanks again)

reddit.com
u/Fluffy-Worry-9541 — 3 days ago
▲ 143 r/LeetcodeChallenge+34 crossposts

Mid level Data scientist MAANG

i want to prepare for sr data scientist in MAANG companies. My background is in  core ML, deeplearning, nlp etc. 

I plan to target in around a year from now.

Does someone have any idea about the interview preparation or someone in these companies who would like to share some experience?

Interviewprep resource:

PracHub: Company specific interview questions

DataLemur: SQL Interview and Data Science Interview questions

StrataScratch: SQL and Python interview

u/nian2326076 — 4 days ago

Teeny tiny microscopic milestone

Done 50 problems , I've been doing consistently since begining of July but before that stretching across months I've been submitting extremely inconsistently but I'm getting better. My third semester starts from August 11th so planning to push till 100 problems by then. I mostly solve mediums yeah. Doing from striver's sheet btw

u/Fluffy-Worry-9541 — 5 days ago

Amazon SDE Interview Experience - 3 rounds, rejected after final round

Sharing my Amazon interview experience in case it helps someone preparing for SDE roles.

I do not remember the exact OA DSA problem. The second OA question was more “dev” based, where HackerRank gave access to a remote IDE. It had an AI sidebar available, somewhat like Cursor.

Round 1

DSA + LPs.

Questions asked:

  1. Find the distance between any two nodes in a binary tree.
    • Parent pointers were not given.
    • Input had only rootsource, and target.
  2. Design a stack that supports: All in O(1) time.
    • push
    • pop
    • getMiddle
    • getTop

I was able to solve the first question completely. For the second one, I got the core logic and data structure choice right, but did not finish the full implementation. I implemented getMiddle after deciding the basic DS approach.

LPs were also asked.

Round 2

LPs + coding/OOD.

Question:

Basic Calculator

After solving it, the interviewer asked me to extend the solution in an object-oriented manner.

One thing that stood out: the interviewer mentioned that my solution was too close to the original/standard solution.

Round 3

This was mostly behavioral + design discussion.

Started with “tell me about yourself” for around 5-7 minutes.

Then he probed quite hard on why I wanted to switch, since I had already made one switch and was now looking for a second.

After that, he asked about the best thing I had worked on in my previous org. This felt a bit close to NDA territory, but I explained it carefully without going into confidential details. He asked follow-up questions like why we used X instead of Y.

At the end, he asked only one design-extension question:

How would you include a new feature in this existing design?

I proposed two solutions. He then asked me to write down the pros and cons of both. I wrote and explained at least 3 pros and 3 cons for each.

Finally, he asked if I had any questions for him.

Result

Rejected.

Recruiter said feedback from Round 2 and Round 3 was negative, but did not share specifics despite me asking explicitly.

Extra prep notes

Apart from the questions I got, I also saw these Amazon-tagged questions while checking prep resources:

Both seem relevant for Amazon-style prep: one for classic DP/string fundamentals, and one for OOD/concurrency/design thinking.

Hope this helps someone preparing.

reddit.com
u/nian2326076 — 4 days ago
▲ 44 r/LeetcodeChallenge+5 crossposts

Two different Binary Tree implementations side by side

The same tree represented in two very different ways visualized using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: Binary Trees

🔗 Binary Tree as Nodes: The tree is built out of multiple node objects. Each node stores its value and two references, one to its left child and one to its right child.

📦 Binary Tree as List: The tree is stored in a single list or array. Instead of references, indices represent the relationships between nodes. For a node at index, its children can be found using a simple calculation:

  • Left child: 2 * index + 1
  • Right child: 2 * index + 2

So, when should you use which representation?

The node-based version makes the structure explicit and intuitive. It is great for education: students can clearly see how nodes are connected while practicing classes and references/pointers. It is flexible and works particularly well for irregular or sparse trees. It is the clearest representation when learning how trees work.

The list-based version can be very efficient for (nearly) balanced homogeneous trees. It does not need to store child references, requires fewer separate memory allocations, and keeps values close together in memory for improved cache performance.

The same abstract data structure, but with very different trade-offs in clarity, flexibility, and performance.

Which representation would you use?

u/Sea-Ad7805 — 4 days ago
▲ 22 r/LeetcodeChallenge+1 crossposts

I built a free, offline LeetCode-style platform with built-in pattern learning (Open Source)

Most LeetCode-style platforms require an internet connection. I wanted to build one that delivers the full experience completely offline, while also helping you get better at recognizing patterns as you solve.

So I built Anvil.

  • 💻 Fully offline coding platform for JavaScript and Python
  • 🧩 Solve LeetCode-style problems while learning the underlying patterns through structured lessons, visualizations, and pattern-recognition drills
  • 🛡 Robust judging powered by a reference implementation and brute-force oracle instead of relying solely on static expected outputs
  • 🔁 FSRS spaced repetition to reinforce patterns over time
  • 🔒 No account, no telemetry, no AI copilot—just you and the problem

It's free, MIT licensed, and runs on Windows, macOS, and Linux.

Releases:
https://github.com/kudzaiprichard/anvil-releases/releases

Source:
https://github.com/kudzaiprichard/anvil

Whether you enjoy grinding LeetCode for fun, are working through NeetCode/DSA, or are preparing for technical interviews, I'd love to hear what you think and what could make it better.

If you're an open-source contributor, I'd also love help with problems, features, documentation, testing, UI improvements, or the judge. Contributions of any size are welcome.

u/JumpFast — 4 days ago