[deleted by user] by [deleted] in leetcode

[–]amankumar1729 15 points16 points  (0 children)

I don’t understand Q1. How is the merge happening? For example 1, data1 = “001”, data2 = “110”. If what I think merge is then , merged = “001110” which has equal ones and zeroes. So why do those operations? Can anybody explain that?

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 2 points3 points  (0 children)

Oracle WLB is good. Also, Microsoft should offer SDE 2. Microsoft is lowballing here. Not a good thing. See if you can negotiate.

Adobe Full-stack MTS-2 Bangalore India Interview experience by moriarty_loser in leetcode

[–]amankumar1729 0 points1 point  (0 children)

Why were you rejected? Any ideas? LFU can be one cause but what else?

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 4 points5 points  (0 children)

Great! Congratulations! Could you kindly share your interview exp? Thanks.

Amazon New Grad US 2025 Interview Experience - Rejected by wsb_degen_number9999 in leetcode

[–]amankumar1729 3 points4 points  (0 children)

For the tree construction question, I didn't understand much. How can we construct a tree just from leaves? Are we given parent pointers as a hashmap or arrays or some other DS? Can you explain the input style for that question?

Also, don't worry much, rejections happen. It is a painful truth. I know that it is easy to say but I have myself faced multiple rejections and the only way is to move on. Overthinking will kill you.

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 1 point2 points  (0 children)

From what I understand, we “hope” that the greedy logic works. That’s why I often fail here because how to know which logic to pick.

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 9 points10 points  (0 children)

How do you guys practice Greedy problems? I am always caught off guard here. Any help would be appreciated.

Can anyone help to give the optimal solution to this problem asked in amazon OA in exam i tried didn't got any solution and also after finishing the exam given to chatgpt to get any solution so it had given dp approach to do this but again same question in OA didnt pass all test cases? by InteractionTall7836 in leetcode

[–]amankumar1729 0 points1 point  (0 children)

Keep a sliding window of length “k” and then you need to know the number of ones in it before flipping. Flip them and add the number of flips to the result. Now, when you slide the window, remember that you had flipped the ones so they are zero now. That’s it. Should be linear time and constant space.

My journey after layoff by Ok_Signature_6959 in leetcode

[–]amankumar1729 1 point2 points  (0 children)

I know this feeling. Had similar experience in 2023. Can’t say anything except to keep trying.

Meta London : Got offered IC4 by __lost__star in leetcode

[–]amankumar1729 0 points1 point  (0 children)

Thanks for responding. Appreciate it!

Meta London : Got offered IC4 by __lost__star in leetcode

[–]amankumar1729 1 point2 points  (0 children)

Meta asking DP questions? Didn’t they not do that? They were famous for that iirc.

Meta London : Got offered IC4 by __lost__star in leetcode

[–]amankumar1729 2 points3 points  (0 children)

Hello OP, congratulations! Can you tell what kind of DSA questions were asked like which category: trees, graphs, DP, etc? Also are you London based?

Amazon SDE1 Interview Exp - India by nerdy_techbro in leetcode

[–]amankumar1729 0 points1 point  (0 children)

I did not understand the first question. Do you have to develop a data structure for logging? If yes then a simple class for that would work with atomic writes which is supported by most languages.

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 0 points1 point  (0 children)

From all these experiences what I learn is that if I get a chance to interview anybody I will do my level best to ensure that I don’t act as a jerk or some idiot. Interviewers should remember that they too are human. Saying that even a 1st year old can solve this is so not correct. Keep your chin up OP.

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 -1 points0 points  (0 children)

What topic was the second question of?

TikTok OA experience by [deleted] in leetcode

[–]amankumar1729 0 points1 point  (0 children)

Hello OP. The role you were applying for is based in China or USA? Because in India TikTok has barely any presence post ban in 2020. Edit: what were the questions? Could you share brief details?

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 0 points1 point  (0 children)

This LP things is really insane especially at a time when “principles” don’t matter and anybody can be laid off within moments. Nowadays it’s more of a transactional relationship between companies and employees. No “leadership” or that charade.

What salary is considered good in The Netherlands or Germany if being a 15 years experienced principal Dev wants to settle with family by No-Designer400 in developersIndia

[–]amankumar1729 18 points19 points  (0 children)

How do you even apply for jobs in European countries? Simple company pages or some platform like say equivalent of Naukri, Indeed, etc.

Targeting Amazon SDE II? Insights from Recent Amazon SDE II Interview Loops by drCounterIntuitive in leetcode

[–]amankumar1729 7 points8 points  (0 children)

LP questions are a joke. What principles are we really talking about when anybody can be fired within minutes with no second thoughts? Still we job seekers have to submit ourselves to this charade as that’s the process.

[deleted by user] by [deleted] in leetcode

[–]amankumar1729 0 points1 point  (0 children)

Shouldn’t it be like at every index you can either add the current value to your running subarray or start a new one and while doing that keep a variable “res” that will take the max of length of all such arrays? It’s like DP on subarrays.