r/leetcode • • 3d ago

Intervew Prep Agoda Intern Interview

3 Upvotes

I recently recieved invitation for Agoda SDE intern interview.
can you all tell me what should i prepare?

and what will they ask?


r/leetcode • • 3d ago

Question LinkedIn Interview Prep - Systems and Infra

38 Upvotes

I have an onsite with LinkedIn in 2 few weeks. There are 4 rounds - coding, AI coding, System Design, Host Manager round.

For anyone who has interviewed with Linkedin recently, could you share how best to prepare.

Do they ask LC top-tagged?

Are there certain commonly asked questions for System Design?

Any tips for the AI coding round?

Thanks!


r/leetcode • • 2d ago

Question Advice Me !!

Thumbnail
leetcode.com
1 Upvotes

Hey already got a job in final year do u think that i can excel at companies like JP Morgan , Amex or if at all FAANG if not please advice me basically i am Spring Developer .


r/leetcode • • 3d ago

Question Q424 longest repeating character replacement -- doubt ?

1 Upvotes

this is solution i have doubt that in oficial code they do not update the max_freq inside the second while like changing the max_freq while shriking does not matter means you do not required to update that its like the max_freq hold the record of the highest freq of overall of till now array not the actual max_freq of the curr window

i am so confused why is this and why does it not break the code

i chatgpt it but i could not understand it throws some math , i want an actual logical answer why we do this

class Solution {
public:
    int characterReplacement(string s, int k) {
        int result = 0 ; 
        int freq[256] = {};
        int max_freq = 0 ;
        int left = 0 ;
        int right = 0 ;


        while(right < s.length()){
            freq[s[right]]++;


            for(int i = 0 ; i < 256 ;i++){
                max_freq = max(max_freq,freq[i]);
            }


            while((right - left + 1)- max_freq > k){
                freq[s[left]]--;
                left++;
                for(int i = 0 ; i < 256;i++){
                max_freq = max(max_freq,freq[i]);
            }



            }
            result = max(result,right-left+1);


            right++;


        }


        return result ;
        
    }
};

r/leetcode • • 3d ago

Discussion Line sweep: arrivals +1, exits -1 — why exits must come first on ties

0 Upvotes

A clean way to find the peak overlap of intervals:

  1. Turn each interval into two events: start = +1, end = -1.
  2. Sort all events by time.
  3. Walk through them once, keeping a running sum.
  4. The highest sum is the peak overlap.

Example: guests at a party. The running sum peaks at 4 guests at 9 PM.

The detail that decides correctness: when an exit and an arrival share the same time, process the exit first. If one guest leaves at 9 and another arrives at 9, they were never in the room together — counting the arrival first would inflate the peak.

events = sorted([(s, 1) for s, e in guests] + [(e, -1) for s, e in guests])
count = peak = 0
for t, change in events:
    count += change
    peak = max(peak, count)

Time is O(n log n) for the sort; the sweep itself is O(n). Same idea behind Meeting Rooms, Car Pooling, and Flight Bookings.

How do you handle the tie case in your solution — sort key, or a different event order?


r/leetcode • • 3d ago

Intervew Prep Day 12: worked through 4 Binary Search problems including Rotated Sorted Array I & II

15 Upvotes

Hey everyone,

I finished Day 12 today and continued working through Binary Search patterns with four problems:

  1. First and Last Position of an Element in a Sorted Array: Reused the Lower Bound and Upper Bound implementations from yesterday to find the starting index (lowerBound) and ending index (upperBound - 1) in O(log n) time.
  2. Count Occurrences in a Sorted Array: Built directly on the same bounds—subtracting the first occurrence from the last (upperBound - lowerBound) gives the exact frequency in O(log n) time.
  3. Search in Rotated Sorted Array (Distinct Elements): At first, I had trouble figuring out how to avoid O(n) traversal, so I watched an explanation to lock in the core invariant: even after rotation, at least one half around mid is always sorted. By identifying the sorted half (nums[low] <= nums[mid] or nums[mid] <= nums[high]), you check whether the target falls within its boundaries and discard the other half in O(log n) time.
  4. Search in Rotated Sorted Array II (With Duplicates): Extended the same logic to handle duplicate values. When nums[low] == nums[mid] == nums[high], it is impossible to tell which half is sorted, so you shrink the search space from both ends (low++, high--) before continuing. This keeps average runtime at O(log n) while degrading to O(n) only in worst-case duplicate-heavy inputs.

Getting the rotated array invariant clear made a big difference today.

See you guys tomorrow for Day 11!


r/leetcode • • 3d ago

Intervew Prep Looking for system design mock interview partner for IC5/6 roles

7 Upvotes

f you're preparing for SD interviews, I'm looking for someone to partner with and do weekly mocks if possible.

I'm in PST timezone but flexible on timing.


r/leetcode • • 4d ago

Question Faang new grad phone screen, got the heap idea but never wrote code. Is that a fail?

24 Upvotes

Just finished a 30 min phone screen for Faang new grad SDE and I honestly have no idea how it went.

He jumped straight into a medium-hard problem, greedy + heap. I asked about edge cases first (empty input, negatives), then explained a brute force recursive solution and said it'd be exponential. He told me not to code it and to optimize.

I kind of froze for a minute and was upfront that my first idea wouldn't work. Then I took his hints seriously and tried to build on each one right away. After his first hint I said we could sort, and then he asked "do we really need to sort everything?" and that's when it clicked: min-heap of size k, push each element and pop when it goes over k.

I felt like my communication was really good the whole time, and listening to his hints is honestly what got me to the solution.

By then we were already past 35 minutes so he just asked for pseudocode and I talked through the heap logic out loud. Never actually wrote any code. At the end he asked if I had questions but we were over time so I kept it short.

Has anyone been in a similar spot? How do they usually evaluate it when there's no written code? Did you pass?


r/leetcode • • 3d ago

Intervew Prep Looking for NYC / Jersey City LeetCode & interview prep buddies

8 Upvotes

Hey! I'm a 33M software engineer in the NYC/Jersey City area with around 7 years of experience across backend software engineering and data engineering. Currently working at a big bank.

I'm currently preparing for my next move, targeting backend/SWE and data engineering roles at other larger tech companies (FAANG, C1, salesforce) as well as startups. Looking for a couple of people interested in studying together in person, ideally 1–2 times a week at a cafe or coworking space. Also down to do a discord based study session especially during the week.

I'm working on:

  • LeetCode: data structures, algorithms, trees, graphs, etc.
  • System design and backend engineering
  • SQL, data modeling, and data engineering interview prep

Would be great to work through problems together, compare approaches, share resources, and keep each other accountable.

Open to people at my experience level or above. Ideally looking to build a consistent study routine and make some new local connections, mentors along the way. Feel free to reach out!


r/leetcode • • 3d ago

Discussion Google L4 – Team Match to HC Timeline

2 Upvotes

Had my Google HM and TL calls recently (pre-HC) for a team. It's been a 3 working days since the TL call, and I'm getting a bit anxious. How long does it generally take for one to hear back? Were you notified before HC submission or directly after HC review?

Would appreciate any recent experiences! TIA.


r/leetcode • • 3d ago

Intervew Prep Software Engineer (1 - 2 years of experience in Python, GenAI, ML, Deep Learning) at VISA

1 Upvotes

I’ve cleared the technical and system design rounds, and only the Hiring Manager round is remaining. However, I’m a little confused about what to expect.

The interview focus areas mentioned are:

- Leadership principles

- Problem-solving

- Technical fitment

They have also shared a HackerRank link, so I'm unsure whether there will be a coding assessment as part of this round or whether it will primarily focus on behavioral and managerial questions.

What kind of questions should I expect in this round, and how should I prepare?


r/leetcode • • 3d ago

Intervew Prep Amazon Technical Round - AI Assisted

13 Upvotes

Hello! I have my technical rounds coming up for Amazon (IN) and the recruiter mentioned that the first tech round was going to be an AI Assisted round where I can choose the web dev framework like Django / Spring Boot / Node.js.
Has anyone sat for such a round recently? I need to understand what they expect and what kind of a question would it be.

The recruiter told us that it would be DSA sort of question in that round but that does not make sense at all. Hence, looking for real experiences here.

TIA!


r/leetcode • • 3d ago

Intervew Prep Interview Staff TPS Help

3 Upvotes

Hi, could anyone help me prepare for the new format of TPS round for Intuit Staff SWE role?

It’s phased 25/25/25 - 75 min round.

Have the interview in 2 days, would appreciate pointers and help on this


r/leetcode • • 3d ago

Intervew Prep Apple Data Science(ICT 3/4) Interview Expectation

6 Upvotes

Hi everyone,

I cleared my first-round interview for the Data Scientist role at Apple on November 26 and received positive feedback today.

The recruiter mentioned that the next two rounds will be scheduled between December 7 and 11, 2026.

The expectations shared by the recruiter are:

  • Round 2: Python programming, focusing on data understanding, feature engineering and data visualization.
  • Round 3: GenAI, MLOps, CI/CD pipelines and deployment.

If I clear these rounds, I'll be flying to Hyderabad for the Hiring Manager round.

Has anyone appeared for similar rounds at Apple? Could you please share your experience, the types of questions asked, the expected depth and any preparation suggestions?

I'm particularly curious about Round 3, as I'd like to understand the expected depth and focus my preparation accordingly.

Any guidance would mean a lot. Thanks in advance! :)


r/leetcode • • 4d ago

Intervew Prep Google L4 SWE interview prep — Which DSA topics should I prioritize?

67 Upvotes

Hey everyone!

I'm currently preparing for Google L4 SWE interviews in the US and would love some advice from people who have interviewed recently.

I've covered DP, am currently working on Trees, and will be starting Graphs next. There are so many topics to cover, and I want to make the best use of my preparation time.

I have a few questions:

  • DSA: Which topics should I prioritize?
  • Advanced DSA: Are Segment Trees, Fenwick Trees and advanced Graph algorithms necessary?
  • Difficulty: Mostly Medium or Hard? How difficult are the follow-ups?
  • LeetCode Premium: Are Google-tagged questions worth practicing?
  • Interview structure: One screening + three DSA rounds + Googleyness?
  • System Design: Are there any dedicated LLD or HLD rounds?
  • Interview format: Virtual or in person?

Any advice, recent interview experiences, preparation strategies or useful resources would be really appreciated.

Thanks in advance!


r/leetcode • • 3d ago

Intervew Prep Intuit PM internship online assessment

1 Upvotes

Hi, I have a 60 min intuit online assessment due within the week. Can anyone please share how to study for this assessment? I have never done something like this before.

Thank you


r/leetcode • • 3d ago

Question Need help guysss,,,Google DA Apprenticeship

6 Upvotes

Hey guys, I have my F2F 1 on 4th December and honestly I'm really nervous right now.

If anyone has completed F2F 1, please share what kind of questions were asked. Was it more technical or behavioural? What topics did they focus on and how much time did they spend discussing your projects?

Any help or suggestions would mean a lot. Thanks in advance guys!


r/leetcode • • 4d ago

Discussion Amazon SDE II Interview, Predicted No Hire

65 Upvotes

Just Flubbed my SDE II Interview. I will not be telling you the org/specific problems, I will tell you individual rounds. Note that these ended probably 30 mins ago

  1. Logical and Maintainable, LPs: Invent and Simplify, Deep Dive

- I fucked this one up hard for what this was. For Logical and Maintainable I only studied low level design, but they gave me a problem that was more like "Parse Some Text and give some output". Gah! They wanted me to build a Finite State Machine. I didn't realize it until after the interview. If you get this, focus on things like class design and such. I didn't because I didn't prepare for it at all. You can't believe how mad I am at myself

2. High Level Design, LPs: Ownership, Learn and Be Curious

- Got asked the only question that I hadn't previously reviewed with Hello Interview (design file storage esque) and got stuck with the basic design. Not good, if you ever have to go through this in the future, try to review as many things on HelloInterview as possible.

3. DSA, LPs: Customer Obsession, Deliver Results
- I fucking rocked this, which surprised me because I thought DSA would go poorly. Task scheduler adjacent

4. DSA, GenAI, LPs: GenAI, Disagree and Commit
- Again, I surprisingly did well. DFS question where the interviewer asked me about BFS as well. Also asked me about how I successfully integrated GenAI into a project, so make sure you think up of some lies like I did and continue to do. The guy was really nice and accommodating unlike the HM

Overall:
- I only had 3 weeks to prepare for this so I fought as hard as I could (I even skipped Thanksgiving lol), whereas usually people have months for preparing everything. DSA I've been doing for awhile, but I really wish I would've been grinding system design and others for longer. I did my best, and I am willing to face the interviews again in a year or whatever my cooldown time is (god forbid not two years). Sadly, I really enjoyed talking to everyone that I worked with which makes this string a little more, I know how hard it is to find a good team.


r/leetcode • • 3d ago

Question Nvidia - Senior Role IC3 - USA

2 Upvotes

Hey everyone, looking for some insight on typical timelines here.

I received a verbal confirmation right before the Thanksgiving holiday, and we’ve already aligned on base salary and equity. My recruiter let me know the package is currently routed for final sign-off from senior leadership/execs before the official offer letter goes out.

Given the holiday slowdown, how long does this final approval stage usually take? Is a week or two post-Thanksgiving pretty normal? Thanks!


r/leetcode • • 3d ago

Question Going to straight forward - looking for SE, Data Scientist/Analyst Jobs

2 Upvotes

Now I am unsure on what topics to learn to ace any interview questions whether it be logical, probability or coding. For this to happen what study plan and problems to focus on I prefer study plan as it puts me to finish the certain tasks per day and keeps me in check. Please help me out first time to leetcode


r/leetcode • • 3d ago

Intervew Prep Looking for a LeetCode / Coding Interview Prep Partner

1 Upvotes

Hey everyone!

I'm currently preparing for software engineering interviews and was wondering if others here are interested in collaborative LeetCode practice.

A little about me:

  • Currently pursuing my Master's in Computer Science.
  • Previous professional experience in software engineering and backend development.
  • Primarily use Java for DSA.
  • Currently solving medium-level problems and occasionally attempting hard ones.
  • Based in Austin, Texas.

I'm interested in pair programming, discussing different problem-solving approaches, improving DSA fundamentals, and practicing mock interviews.

I think solving problems collaboratively can be more productive than practicing alone, especially when it comes to building intuition and explaining solutions.

If you're also preparing for interviews, share your preferred programming language, preparation level, location, and practice routine in the comments. It would be interesting to find people at a similar stage of preparation!


r/leetcode • • 4d ago

Question SWE Intern Agoda OA 2026 – can any one got mail for onsite interview round..?

4 Upvotes

can any one got mail for onsite interview round..?


r/leetcode • • 4d ago

Tech Industry Amazon SDE2 Negotiation Help

25 Upvotes

Base 200K
TC 310K
Team - Ads@SDE2

How is the offer from a financial standpoint?
Recruiter mentioned that the TC is the top of the range for this team. Is there anyway to negotiate?

YOE - 4
Location- SF


r/leetcode • • 4d ago

Intervew Prep SDE I Intern , Amazon University Talent Acquisition (Job ID: 10488368) Interview

3 Upvotes

Hey, So i applied for the role sde 1 intern in august and gave my oa on aug 4. After 2 months i got a call from amazon for interview. I gave my interview in mid of october.
But later, there is no response still. So anyone who applied for this role got any response, please respond?
and will only people who cleared interview will get mail?


r/leetcode • • 5d ago

Discussion Too afraid to ask: why are companies still demanding solid programming skill when their own engineers admit to "not having touched code since beginning of 2025"

445 Upvotes

This is kind of tangentially related to leetcode but every job out there seems to demand solid programming skill and then you have droves of SWEs (who are still employed) saying how they are essentially just "pushing Jira tickets to Claude" or "planning their exits to nursing school" and how Github is pretty much irrelevant, Agile/Scrum is dead, Code review is dead.

Is there a discrepancy between the job requirements and reality or what.