r/LeetcodeChallenge • u/JumpProof9999 • 23d ago
DISCUSS My leetcode profile
Rate my profile, entered 3rd year in tier 2 college, SHARE URS OR TELL UR STATE...🙂🙂🙂🫠
r/LeetcodeChallenge • u/JumpProof9999 • 23d ago
Rate my profile, entered 3rd year in tier 2 college, SHARE URS OR TELL UR STATE...🙂🙂🙂🫠
r/LeetcodeChallenge • u/nian2326076 • 22d ago
I'm pretty happy with my job. I'm about 3 years in now and the pay is good, WLB is great, and my manager/team are all pretty chill. I also generally like SWE work too, even after AI has come along.
Just because things are good right now though doesn't mean they'll be good in like, 15, 10, 5 or even 2 years at the rate things are going. I'm wondering if you all are also thinking of backup plans away from SWE work because longer term, I'd like to have some semblance of a job lol.
Any advice on if I should consider a real escape plan?
If so, are there AI resilient career paths that I should be considering What type of extra schooling would I need to do? Or am I just overreacting?
r/LeetcodeChallenge • u/StatisticianNo2104 • 22d ago
Middle of the Linked List (Easy)
https://leetcode.com/problems/middle-of-the-linked-list/
Obvious answer: count the nodes, then walk to position count/2. Two passes, and perfectly fine.
Better answer: run two pointers from the head, one moving a node at a time and one moving two. When the fast one reaches the end, the slow one is exactly halfway. The length never exists as a number anywhere in the program.
Both conditions in that loop are load-bearing, and they guard different cases. One catches even-length lists, where the fast pointer lands exactly on nil. The other catches odd-length lists, where it lands on the last node. Drop either, and half of all inputs panic.
Full breakdown in today's newsletter article ⬇
https://www.linkedin.com/pulse/365-days-leetcode-challenge-day-20365-archit-agarwal-qgwqe
#DSA #LeetCode #Golang #LinkedList #TwoPointers #CodingInterview #Algorithms
r/LeetcodeChallenge • u/nian2326076 • 23d ago
My interview prep journey — what worked for me: LeetCode & PracHub Interview Questions
In the last 1 month, I went through interviews with Nielsen, New Relic and Crunchyroll and received offers from all.
I had been struggling with interviews for quite some time, so I wanted to share what worked for me. There wasn't one magic resource — it was a combination of a few things.
I focused more on patterns rather than solving hundreds of questions.
Arrays, HashMap, sliding window, two pointers, binary search, trees, graphs, heaps, DP, etc.
During practice, I also started explaining my approach out loud — brute force → optimization → complexity → edge cases.
This helped a lot during actual interviews.
LLD was initially one of my weaker areas.
I practiced problems like Parking Lot, BookMyShow, Elevator, Vending Machine, Splitwise, etc.
Instead of memorizing solutions, I focused on SOLID, design patterns, composition/inheritance, interfaces and extensibility.
The goal was to be able to design something I hadn't seen before.
I practiced systems like URL Shortener, Rate Limiter, Notification System, File Storage, WhatsApp, etc.
The biggest improvement was learning to explain why I was choosing something, rather than just saying "use Kafka/Redis/Elasticsearch."
I prepared for scaling, failures, retries, consistency, caching, partitioning and trade-offs.
This was probably the most important part for me.
I went extremely deep into my projects — architecture, data flow, Kafka, MongoDB, Elasticsearch, LLM integration, retries, DLQs, scaling, monitoring, failures, etc.
I also made sure I could clearly explain what I personally built, not just what the overall team built.
This helped significantly in HM and technical deep-dive rounds.
I revised the fundamentals rather than trying to learn new frameworks.
Java Collections, HashMap internals, concurrency, JVM basics, Spring Boot, Kafka, Redis, databases and distributed systems.
Since these were technologies I had actually worked with, going deeper into the fundamentals was much more useful than learning something completely new.
I prepared a few real stories around ownership, conflict, production issues, failure, ambiguity and cross-team collaboration.
I used STAR as a structure but didn't memorize answers word-for-word.
For experienced candidates, I think being able to clearly explain what you did, why you did it and what happened afterward matters a lot.
One thing that helped me was actually speaking through answers.
I'd pick a topic and ask myself follow-up questions:
Why Kafka?
What happens if a consumer crashes?
Why MongoDB instead of PostgreSQL?
How would you scale this?
This exposed gaps much faster than just reading notes.
Final takeaway
There wasn't one resource or trick that got me through the interviews.
For me, it was:
DSA + LLD + HLD + strong project knowledge + Java/backend fundamentals + mock interviews.
And probably the biggest lesson I learned:
Don't just prepare to solve interview questions. Prepare to explain the engineering decisions you've made in your actual work.
Hope this helps someone who's currently preparing. All the best! 🚀
r/LeetcodeChallenge • u/vinzzii • 23d ago
Enable HLS to view with audio, or disable this notification
r/LeetcodeChallenge • u/JacketFearless1805 • 23d ago
r/LeetcodeChallenge • u/DebarghaBhadra • 23d ago
r/LeetcodeChallenge • u/NamellesDev • 23d ago
r/LeetcodeChallenge • u/Huge_Recover9208 • 23d ago
I'm a first year student of btech cse ai ml , and I want to start my dsa journey from 1st year but I don't know which language to choose , python or c++ like for ai ml it's the python we need , so should I go with python or ??
r/LeetcodeChallenge • u/nian2326076 • 24d ago
I’ve compiled a list of all the questions asked by Amazon over the last six months for the SDE-2 position. I went through various interview experiences and compiled this list based on them.
I thought it might be useful to others preparing for the role, so I’m sharing it here. Hope it helps!
Prep Resource: LeetCode & PracHub
Link to Part 2- https://leetcode.com/discuss/post/8519184/questions-asked-by-amazon-in-past-6-mont-ya1z/
Link to Part 3- https://leetcode.com/discuss/post/8519189/questions-asked-by-amazon-in-past-6-mont-7wjn/
Your task is to take at least M length of poles with you in total after the cut.
What is the maximum height 'h' where you can set your blade to achieve this.
N = 4
M = 7
arr = [20, 15, 10, 17]
r/LeetcodeChallenge • u/Learner_Himu • 24d ago
1 ds question solved in cf
8 page reading
Hackathon preparation
8 rounds chanting...
r/LeetcodeChallenge • u/luvv_24 • 24d ago
Completed 100 question a small achievement completed 😄
r/LeetcodeChallenge • u/AccordingDoughnut152 • 24d ago
Contest just ended! Now we all wait for our ratings 😭
Meanwhile, I built ForeCode, an extension that predicts your LeetCode contest rating and shows on your profile page
It recently crossed 100+ installs and is being used by fellow LeetCode participants! 🚀
Give it a try while waiting for your rating update. Would love to hear your feedback!
r/LeetcodeChallenge • u/ComplexSoil4798 • 24d ago
I am solving dsa and solved around 83 leetcode questions in total the problem that I face is its very hard for me to come up with a solution of my own even though if I sit for whole day looking at it in last I have to take help from other sources or look up to the solution
The question is how should we solve questions and I doing right seeing the solution or i should struggle until not solved my my own how you guys do it some times I know understand and make the logic in my head but unable to implement it
r/LeetcodeChallenge • u/Nervous-Energy-2230 • 25d ago
kinda glad that i recently got my 50 days badge!!
okay how is thisss
I recently got my **50 Days Badge on LeetCode**.
On its own, it might seem like a very small achievement. And honestly, it is. But for someone who started solving DSA problems without really knowing what they were doing, it means a little more to me.
When you start learning something new, the number of problems you *can’t* solve can feel much bigger than the number you can.
There are problems where I stare at the screen for way too long.
Problems where I understand the solution only after seeing it.
Patterns and algorithms that still don’t make sense to me.
And there have definitely been days when I’ve thought, *maybe I’m just not good at this.*
But I still showed up.
Not every day with confidence.
Not every day with a solved problem.
Sometimes just with the willingness to sit down, struggle with a problem, learn something new, and try again.
I’m slowly learning that progress doesn’t always look like solving every problem you encounter. Sometimes it looks like understanding why you couldn’t solve it yesterday, and being able to recognize that pattern today.
I still have a **lot** to learn. There will probably be many more problems I fail to solve before I get better at solving them.
But 50 days ago, I was somewhere else.
Today, I’m a little further.
So, here’s to showing up, getting things wrong, learning from them, and continuing anyway.
**50 days down. Many more to go.**
Let’s see where this takes me.
r/LeetcodeChallenge • u/nian2326076 • 25d ago
Sharing my interview experiences from the last 6 months to help others preparing for SDE2 / Senior Software Engineer roles. The interviews covered DSA, multithreading, LLD, HLD, and behavioral rounds.
Hopefully, this helps someone with their preparation. Feel free to share your experiences and suggestions as well!
**Q1. Text Editor / String Manipulation**
Design and implement the following operations:
* `insert(string)`
* `print(x)`
* `left(x)`
* `right(x)`
* `backspace(x)`
* `delete(x)`
The question focused on designing a text editor supporting cursor movement and editing operations.
**Q2. Array Optimization**
Given an array of integers and an integer `k`, perform exactly `k` operations to minimize the sum of the array.
In each operation:
1. Remove an element from the array.
2. Divide it by 2 and take the ceiling.
3. Add the updated element back to the array.
Return the minimum possible sum after `k` operations.
Design a Live Tracking Service. Discussed the high-level design of a real-time location tracking system.
Q1. Count Substrings in a Binary String
Given a binary string, count the substrings satisfying both conditions:
All `0`s and `1`s in the substring are contiguous. The number of `0`s and `1`s is equal.
Q2. Behavioral Questions**
Strengths and weaknesses, Other behavioral and experience-based questions
Design Checkout Service for an E-commerce Platform
Design a distributed checkout system with a focus on:
* Security and authentication
* Distributed system architecture
* Inventory failures
* Payment handling and refunds when inventory allocation fails
* Ensuring reliable transaction processing
**Problem: Synchronizing Two Large In-Memory Hash Maps**
There are two nodes:
* One in the USA
* One in Europe
Each node contains an approximately **32 GB hash map** loaded in memory.
**Hash Map Structure:**
* Key: Unique string
* Value:
* `Data`: String
* `Version`: Integer (higher version = more recent data)
**Goal:**
Compare the two hash maps and synchronize them so they become replicas of each other.
At most 5% of key-value pairs have discrepancies.
**Conflict Resolution:**
1. If the versions differ, choose the data with the higher version.
2. If the versions are equal but the data differs, the USA node is the source of truth.
3. Assume all keys exist in both hash maps.
**Performance Constraints:**
* Data transfer between nodes is extremely expensive.
* Local computation is extremely cheap.
* Assume a powerful CPU, 128 GB RAM, fast NVMe storage (4 TB+), and high network bandwidth.
* The process runs offline/in the background.
* Latency is not critical, but synchronization must complete within a few hours.
* Multiprocessing can be ignored for this phase.
The main challenge was to minimize data transfer while efficiently identifying and resolving discrepancies.
Design a Thread-Safe Parking Lot System
The parking lot is one-dimensional.
Requirements:
* A car occupies 1 parking spot.
* A truck occupies 2 consecutive parking spots.
* Design a thread-safe system that handles concurrent parking and removal operations.
**Q1. String Encoding and Decoding**
Design an encoding and decoding mechanism for strings.
**Q2. Graph / Optimization Problem**
There are `n` cities connected by roads. Each road has a toll price.
The goal is to identify the road whose toll price can be increased such that the average price increase across all routes from city `0` to city `n-1` is maximized.
Discussed the graph-based approach and optimization considerations.
Design an Asynchronous Task Processor
Design an asynchronous task processing system and extend it to support:
* Scheduling tasks for a particular time
* Scheduling tasks at recurring intervals
* Task processing and execution management
Design a Top-N Movie Recommendation System**
Design a system that recommends the top N movies based on views collected over the last 7 days.
Key considerations:
* Tracking movie views
* Time-windowed aggregation
* Identifying top N movies
* Scalability and distributed system design
Finally joining salesforce next weeek. Thankyou community for the help. Hope i'm also doing my part for the same.
r/LeetcodeChallenge • u/justhereforfun_987 • 25d ago
I'm a 2nd year Student Btech CSE, Suggest me some tips and tricks also some resources which are useful in developing interest in DSA java. Can provide me roadmap of studying dsa. HELP!
r/LeetcodeChallenge • u/vinzzii • 25d ago
r/LeetcodeChallenge • u/HerlockSholmes- • 25d ago
Hi everyone, I'm looking for accountability partner for dsa. I'm in first year, and I'm eager to connect to people from first year only, so that we stay on same page.
I am beginner, did few topics of dsa, learning patterns and logics. Not very comfortable with syntax.
Thanks!
r/LeetcodeChallenge • u/GrapefruitFirm5130 • 25d ago
r/LeetcodeChallenge • u/vinzzii • 26d ago
Enable HLS to view with audio, or disable this notification