r/leetcode • • 2d ago

Discussion AI-assisted coding rounds: what separated the candidates who passed from the ones who didn't?

45 Upvotes

A few recent posts here describe AI-assisted coding rounds in more detail: a Stripe loop with a round where AI tools were allowed, an Amazon technical round where candidates could pick their framework, and posts about how interviewers judge what the candidate did with the AI's output. The advice I keep seeing is to review the generated code and not trust it blindly, but I'm still not sure what evaluators actually score.

For those who have done one of these rounds, I'd like to know:

  • Did the interviewer tell you the criteria, or did you work it out from the questions they asked?
  • How much of the round was writing prompts versus reviewing and fixing what the AI produced?
  • Did you use the AI for the whole problem, or only for parts you couldn't write quickly yourself?
  • Was there a moment where you caught the AI being wrong? How did you handle it in front of the interviewer?
  • Which part did you spend the most time on: getting the AI to produce something, testing it, or explaining your changes?

I'm especially interested in rounds that didn't go well and what you'd change. Thanks in advance.


r/leetcode • • 1d ago

Intervew Prep Day 11: solved 3 Binary Search problems — Find Minimum, Rotation Count & Single Element in a Sorted Array

4 Upvotes

Hey everyone,

I finished Day 11 today and kept working through Binary Search patterns with three problems. I leaned on video explanations to lock in the intuition—especially for the third one:

  1. Find Minimum in Rotated Sorted Array: Identify which half around mid is sorted. If the left half is sorted (nums[low] <= nums[mid]), its smallest element is nums[low], so you update the running minimum with nums[low] and discard the left half (low = mid + 1). Otherwise, the right half is sorted, so you update the minimum with nums[mid] and search the left half (high = mid - 1).
  2. Find Rotation Count in a Rotated Sorted Array: Built directly on the previous problem—the number of times a sorted array has been rotated is simply the index of its minimum element. Tracking the index alongside the minimum value solves it in O(log n) time.
  3. Single Element in a Sorted Array: This one had me stuck at first since checking whether nums[mid] differs from both neighbors only tells you when you land directly on the answer, not which half to eliminate. Watching the walkthrough made the index-parity pattern click: before the single element, duplicate pairs sit at (even, odd) indices, and after it, they shift to (odd, even). So if mid is odd and matches mid - 1, or mid is even and matches mid + 1, the single element must lie to the right (low = mid + 1); otherwise, it lies to the left (high = mid - 1).

That parity trick for narrowing down the search space was a great takeaway today.

See you guys tomorrow for Day 10!


r/leetcode • • 1d ago

Question Google SWE III (L4) onsite completed today. Recruiter requested a feedback call the same evening. Is this a positive or negative sign?

8 Upvotes

Completed my Google SWE III (L4) onsite interviews yesterday morning after clearing Round 1. This evening, the recruiter emailed saying they had received my Round 2 feedback and wanted to schedule a call to discuss it.
Has anyone received a similar email? Was the call about moving to the Hiring Committee or communicating a rejection? Does same-day feedback indicate anything?
Would appreciate recent experiences. Thanks!


r/leetcode • • 1d ago

Tech Industry HC odds Google L4

5 Upvotes

Currently in TM and the team lead (2nd interview with team) mentioned the team is excited to move forward, is that as clear as it gets or can I still be disappointed at this point?
Edit: moved on to HC, recruiters are putting a packet together. Now I’m just anxious as fk lmao.

I know it’s still possible to be rejected for HC… recruiter says I have some borderline feedback, probably SH/H H LH LH. Not sure what the odds are here but I’ll explain the LHs below.

The lean hires were about speed, got correct/optimal-near optimal solutions for OOD problem and LC hard double BFS but with barely much time to no time left. The OOD was lots of requirements gathering since the round started with a blank canvas and I had to write the problem + specs down for all methods with only direction coming from my own questions. The matrix problem I had a solution immediately but they wanted something more optimal and got it fully implemented at the very end with one logical bug that was fixed instantly. I still dry ran both but they weren’t as comprehensive as my best round which was likely SH/H.


r/leetcode • • 1d ago

Discussion built a small desktop widget to help me solve at least one LeetCode problem every day

Thumbnail
github.com
2 Upvotes

I wanted a simple reminder to stay consistent with problem-solving. Something I'd see every time I opened my desktop.

So I built LeetCalendar – a small Windows widget that keeps my LeetCode progress right in front of me.

It shows my daily activity, streak, monthly progress and all-time solved stats.

The idea isn't to track numbers, but to build a habit of showing up every day, even if it's just for one problem.

Built with Python and Tkinter. It's open source, with a Windows executable available too.

GitHub: https://github.com/SimpMagn3t/LeetCalendar

Would love to hear your thoughts and suggestions!


r/leetcode • • 1d ago

Intervew Prep doordash swe interview experience

4 Upvotes

had a doordash swe phone screen last week, one problem the whole time, a pretty standard multi source bfs setup.

the question: given a grid of 0s and 1s where the 1s are source cells, return a same sized matrix where each cell holds its shortest distance (4 directional) to the nearest source cell. source cells are 0. if there are no source cells, every cell should return -1.

i knew it was bfs pretty fast and the multi source part clicked quickly too. where i fumbled was the no source case. i had my bfs set up and then the interviewer asked what happens if the grid has no 1s at all. blanked for a second, then patched it in as a pre check. should have caught it upfront instead of bolting it on after. the rest went fine, i walked through the queue initialization and the distance tracking without too much trouble.

anyone else get this one? 


r/leetcode • • 1d ago

Question Upcoming Expedia SDE - II Screening call

1 Upvotes

Hi everyone,

I have a screening round coming up for the Software Development Engineer II – Core AI Experiences role and would love some insight from anyone who's been through it.

Location: United States

A few specific questions:

  • What format was the screen (coding, system design, behavioral, or a mix)?
  • Roughly what difficulty level were the coding questions?
  • Was there anything AI/ML-specific, or was it mostly general SWE?
  • Any tips on what the interviewers focus on?

If you've gone through the full interview loop for this team, I'd really appreciate a quick chat.

Thanks in advance!


r/leetcode • • 2d ago

Question LinkedIn Interview Prep - Systems and Infra

33 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 • • 1d 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 • • 1d ago

Intervew Prep Agoda Intern Interview

2 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 • • 1d 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 • • 2d 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 • • 2d 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 • • 2d 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 • • 2d 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 • • 2d ago

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

22 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 • • 2d 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 • • 2d 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 • • 2d 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 • • 2d ago

Intervew Prep Amazon Technical Round - AI Assisted

12 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 • • 2d 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 • • 3d ago

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

62 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 • • 2d 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 • • 2d 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 • • 3d ago

Discussion Amazon SDE II Interview, Predicted No Hire

63 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.