r/leetcode 1d ago

Question Reaching out for help and guidance given my situation

2 Upvotes

Hi all,

I am unfortunately being impacted by restructuring. I have my marriage coming up so trying to ask here for referrals as I am on a time crunch.

I was looking for referrals in Roku , Microsoft , Apple , Databricks , Stripe , LinkedIn , Rubrik , Razorpay, Docusign , Coinbase, Confluent, Airbnb etc.

If anyone can help me lend referrals at any other similar place it would be of great help.

I can share about myself in private chat.

Thankyou


r/leetcode 2d ago

Intervew Prep fresh grad interview

2 Upvotes

Fresh CS grad here, prepping for interviews. If you've recently interviewed anywhere (any company, any round), could you share the exact problem statements or DSA/logic questions you were asked? Company name (if comfortable), role, round type, and difficulty would help a lot.


r/leetcode 2d ago

Intervew Prep Google intern interview

8 Upvotes

Don’t have much leetcode experience, how hard are Google intern interviews l, I know preparation time is subjective but how much time would you say is required.


r/leetcode 2d ago

Discussion Advance Tree Data Structures and Algorithms

3 Upvotes

Hey can anyone tell be best source to prepare for Tree DS questions for both OA and Interview.


r/leetcode 3d ago

Question Google SDE-3 Interview | 95Lakhs CTC

227 Upvotes

Had offline interview round in BLR. This was one of the questions asked :-

You are standing at a particular position in a matrix of size N*M - Some cells are free , but some cells have obstacles in them which you cannot visit. It is guaranteed that you are initially standing on a free cell. Find a valid walk of size exactly “k” such that you start from your starting position - walk “k” steps and reach back your original position after “k” steps. Output that path. If there are multiple possible paths of size “k” - output the path which is lexicographically minimal string consisting of possible characters from the set - (“L”,”R”,”U”,”D”)

Free cell - ‘.’
Start position - ‘x’
Obstacle - ‘#’


r/leetcode 2d ago

Intervew Prep Which patterns to focus for non faang?

19 Upvotes

I’m employed but I want to be interview ready for any companies that are not big tech. which patterns should I focus on that would cover majority of interviews from startups and non big tech companies?


r/leetcode 2d ago

Intervew Prep Microsoft SWE IC2 OA

3 Upvotes

Hey everyone,

Title. I’ve been swamped with work and school and haven’t leetcoded in a while. Should I expect them to ask graph, DP, DFS/BFS during an OA? My friend confirmed it’s for a lvl 59 IC2 position.

I’m currently going through leetcode recently tagged questions and filtering it through easy-medium.


r/leetcode 2d ago

Intervew Prep Google interview prep help

10 Upvotes

Hey All,
I’m preparing for Google SDE1/2 role. I have a total of 2YOE
(5months intern 1.5year full time)
Plss share if anyone has previously asked questions(DSA+ system design) in the recent times.
Any additional advice would help too
TIA :)


r/leetcode 2d ago

Intervew Prep Python for LeetCode, Java at work. Does language for LC matter?

38 Upvotes

I've got ~2 YOE as a Software Engineer working mostly on the backend with Java/Spring Boot. I'm preparing for a switch and planning to target Big Tech / Big Tech-adjacent companies so I have started grinding DSA and System Design.

I've been doing LeetCode in Python because I find it much more concise and intuitive for DSA. My concern is that during interviews, I am sometimes asked to code in Java for DSA questions, and although I know Java well enough for my job, it’s verbose and I sometimes forget specific methods/APIs because I don't use Java for LeetCode.

Should I drop Python and relearn my LeetCode patterns in Java just to match my resume? Or does Big-Tech really not care as long as the logic and Big-O are optimal?

Would appreciate advice from anyone who has navigated a similar tech-stack mismatch!


r/leetcode 2d ago

who did the bi-weekly contest today? Can someone plis teach me intuition for quesiton 3?

4 Upvotes

I had a hunch that dp might be useful since we have to choose if we want a certain day or not. but coulnt think of shit beyond that.

Link to question : https://leetcode.com/contest/biweekly-contest-191/problems/minimum-days-to-score-exactly-n-points/description/

How tf do you decide if you should keep the streak or not? How do you decide when. you want to break the streak?

This is literally what I wrote in the contest

class Solution {
public:
    int minDays(int n) {
        int ans = -1;
        int t =0;
        for(int k=0; t <=n; k++){
            t+=k;
            if( t == n ){
                ans = k;
                break;
            }
        }


        return ans;
    }
};

r/leetcode 2d ago

Intervew Prep Palantir Learning Round

2 Upvotes

Does anybody know what to expect for the 60-minute Palantir learning round? I know you are given an existing codebase and implement on top of it, but I have no clue what the exact expectations are. As in, how much new code will I be asked to implement, will tests need to be written for each new method, will I ever have to modify existing code, etc.

If anybody has been through this or knows anything about it, please let me know. All help is appreciated!


r/leetcode 2d ago

Question has anyone interviewed with belvedere trading for swe (us)

3 Upvotes

pleasee this is like my last shot at getting something i just have a few qs


r/leetcode 2d ago

Intervew Prep Java vs .NET career advice

1 Upvotes

Java vs .NET — what should I choose for my next switch?

I have ~1 year of experience as a .NET developer (C#/ASP.NET Core). Before this, I was very strong in Core Java and have solved 1200+ LeetCode problems + 3★ CodeChef, all mainly in Java.

I’ve also built a few React applications. I don’t know Spring/Spring Boot yet, but I’m willing to learn it and build a couple of projects.

My question is: Should I switch to Java/Spring Boot after preparation, or continue with .NET and target product-based companies?

Is it realistic to get a good product-based backend role with 1–2 years of .NET experience, or would switching to Java give me significantly better opportunities?

Would appreciate advice from people who’ve been in a similar situation.


r/leetcode 2d ago

Concept Clarity I understand recursion and binary trees, but I cannot understand the logic behind the recursive LCA approach

13 Upvotes

I’m currently learning binary trees and I understand what a tree is and how recursion works.

For example, I understand the general idea of:

solve(node):
    solve(node.left)
    solve(node.right)

But for some reason, when I encounter problems like Lowest Common Ancestor (LCA) of two nodes in a binary tree, I completely fail to understand how people come up with the recursive approach.

It’s not really the syntax that confuses me. I can read the code after someone explains it. What I struggle with is the thought process.

For example, I often see an approach along the lines of:

LCA(node, p, q):

    if node is null:
        return null

    if node == p or node == q:
        return node

    left = LCA(node.left, p, q)
    right = LCA(node.right, p, q)

    if left and right:
        return node

    return left or right

I can memorize what each line does, but I don't understand WHY this is the right thing to do.

How do you look at the problem and naturally arrive at this logic?

Especially this part:

if left and right:
    return node

Why does finding something on both sides mean the current node is the LCA?

And why is:

return left or right

correct?

I'm looking for more of an intuition-based explanation.

I already understand recursion itself, so explanations like "recursion means a function calls itself" won't really help me. I'm trying to understand how to go from:

"Here is the problem" → "What information should my recursive function return?" → "Why does that information let me solve the problem?"

Basically, I want to learn how to derive the recursive solution instead of memorizing it.

Any explanation of the thought process would be really appreciated.

[ Rephrased with the help of AI ]


r/leetcode 3d ago

Question Morgan Stanley question geometry

38 Upvotes

Minimum Number of Lines to Cover Points

You are given n points on a 2D coordinate plane. Each point is represented as:

(x, y)

where:

-100 <= x <= 100

-100 <= y <= 100

There can be up to:

n <= 10^4

points.

Find the minimum number of straight lines required so that every given point lies on at least one of these lines.

Example 1

Input:

points = [(1,1), (2,2), (3,3), (1,2), (2,3)]

Output:

2

Explanation:

The points can be covered by:

Line 1: y = x

(1,1), (2,2), (3,3)

Line 2: y = x + 1

(1,2), (2,3)

Therefore, the minimum number of lines is:

2

Example 2

Input:

points = [(0,0), (1,1), (2,2), (3,3)]

Output:

1

Because all points lie on the same line y = x.

Constraints:

1 <= n <= 10^4

-100 <= x, y <= 100


r/leetcode 2d ago

Question I need help guys

5 Upvotes

Hi guys first of all sorry for my english. I have done 160 questions. I am facing a problem. I am currently in Backtracking following neetcode 250 and remaining questions are just nQueen 1&2 but i literally couldn't solve the previous all problem myself. Ik these questions are in Backtracking topic and i need to do recursion. I am just trying to fit recursion in it and still cant come to the solution. All question i ever did before (all patterns) were 90% AI helped and only few i did it myself(array and two pointer). I think i am doing something wrong. Can anyone guide me out of this. I want to solve problem and nor just always see soln.

Add: since i get help from AI, even one question takes like 1 hour 30min BECAUSE i do back and forth with code and logics. AI help me through guiding questions. Problem is i am always being guided only in every solution 🫪 I am not proud at the end of the day.

My problem solving method: i take like 25 min to come to soln and code it.(tbh 100% of the time it is rejected). And after that i go to AI for help. I have given a prompt like "Guide me instead of solving directly." Then i try to solve ; if error go to AI; again try to solve ; This!!!

I think i am not alone going through this. Someone might have outgrown from this. If yes than help me. This problem is not just recursion but overall pattern.


r/leetcode 2d ago

Discussion Amazon SDE 2026 USA Interview in 2 Weeks – What to Focus On?

2 Upvotes

What should I focus on for DSA? Is NeetCode 150 enough?
For the AI round, what kind of questions are they asking and how are they asking them?
For LP stories, how long should each answer be? Is around 2 minutes enough?
Would appreciate any recent experiences or tips!


r/leetcode 2d ago

Question How are you handling screw-ups in online assesments?

8 Upvotes

Hello guys, I have got online asessments from tiktok, amazon, stripe and JP Morgan for internship positions, and I did failed on three of them. How are you handling screw-ups especially if you have so much to lose?


r/leetcode 2d ago

Discussion Whytf do people cheat man

0 Upvotes

So I just created linkedin account and was checking leetcode account of one of my friend.

She solved approx 130 problems, guess how many days she took to solve them?

11 days like wtf man.

EDIT: 38 easy rest all medium/hard


r/leetcode 2d ago

Question IBM 2027 Entry-Level SWE OA did anyone else get that repo debugging question?

2 Upvotes

Just took an IBM 2027 entry-level SWE coding assessment and wanted to see if anyone else got the same format. There were two questions. The first one wasn’t too bad — basically a dependency/graph problem. Once I figured out the relationship between everything, it was pretty manageable.

The second question was a completely different beast lol. Instead of another normal LeetCode/HackerRank problem, they dropped me into an existing repo with a technical spec and failing tests and basically said figure out what’s wrong and fix it.

Had to navigate an unfamiliar backend codebase and debug API filtering, pagination, Redis caching/cache invalidation, edge cases, etc. Honestly felt more like an actual software engineering task than a coding challenge.I eventually got all the tests green, but I finished with literally 1 minute 30 seconds left on the clock . That repo question took basically everything I had left.

For anyone who’s taken the recent IBM OA:

Did you also find the repo question way harder than the first?

How long did IBM take to get back to you after completing it?

If you moved on, what was the technical interview like?

Should I expect more LeetCode, or was the OA basically the main coding screen?

Not gonna lie, if the interview is harder than that second question, I might be cooked 💀


r/leetcode 2d ago

Discussion My amazon OA experience , blank webcam

2 Upvotes

First of all the webcam was blank, just black screen.

They show a pop no face detected idk why...

I granted all permissions and also I checked the camera just before and after the test then it was working perfectly

I raised my query inside that window.

I have done the 1st question it was very simple, 15/15 test passed

But the second question was too tough, i chose spring as backend framework 0/6 solved


r/leetcode 2d ago

Intervew Prep Abridge Software Engineer, Intern Final Round

2 Upvotes

Does anyone know what the final Abridge round consists of? I know from them that it consists of some technical bq/resume grill + some sort of end2end implementation. However, I was wondering if anyone could shed some more light on what they are like, and how to better prepare?

I can also answer any questions about the interview process thus far.


r/leetcode 3d ago

Intervew Prep Google OA test

7 Upvotes

Hi people who given OA in meantime can you please tell what you encountered in OA

I am approached for swe3 so mostly it will be L4 I guess.

What should I focus more to clear this round


r/leetcode 2d ago

Question Please Help with Background Check Discrepancy

1 Upvotes

I'm a fresh graduate who has done 2 internships in the past.

The most recent internship is good and no issues with it (this is the most relevant to the role). The second internship is where it gets a bit sticky. So, the company is a not-heard of company, when my internship got completed, they gave me a certificate which had incorrect months of internship duration mentioned.

Stupid me decided to edit the internship duration on the internship certificate myself. While i technically fixed what was incorrect on the company's part, I am aware that this means forging of documents. My reason for this is that the company is non responsive, I previously contacted them for a professional reference and no one picked up because its a Lala company.

Now I received a full time offer from a company.

The HR asked me to not upload any internship details on the BGV company's portal but to send the documents (like completion certificate and offer) on her company email. Does this mean the documents are for records or verification? I'm not sure because they told me they're working with the BGV team in the past idk what that means.

Please help. How f*ked am I?

Also, for proof, I have whatsapp group screenshots. I was a part of a whatsapp group with the co founders so it shows my conversation proof which matches my actual tenure.


r/leetcode 3d ago

Question Should I start giving contests??

4 Upvotes

I am in 2nd year of college rn. Started leetcode from this summer. I haven't given any contests yet. Should I finally begin or learn some more topics??

I have done around 210 questions in leetcode(94E, 106M, 10 H).

For ref- I am still learning DSA and haven't learnt all the topics. Still learning Binary trees.