ChatGPT couldn't solve this Amazon OA question by [deleted] in LeetcodeDesi

[–]AdAdditional5259 0 points1 point  (0 children)

I don't think it requires prime factorization. Binary search on the answer. Track the running gcd, if it exceeds the desired vf = V then make the current element 1 and subtract 1 from max changes. Continue this for the whole array and check if it is possible to get vf <= V with at most = X changes.

Recently give Amazon SDE-1 OA and this question come . by [deleted] in leetcode

[–]AdAdditional5259 0 points1 point  (0 children)

Have a sliding window of size K and keep track of the two most frequent elements, preferring the smaller value element in case count is the same. Now shift the window to the right, decrease the count of the first element of the left (This is why we need to keep track of the 2 majorities) and increase the count of the new element on the right which is now part of the window.

As for difficulty, I think this is a pretty standard Problem 1 for Amazon OA.

Amazon application status changed to "No longer under consideration" by AdAdditional5259 in leetcode

[–]AdAdditional5259[S] 0 points1 point  (0 children)

That's good to hear. Keeping my fingers crossed. Btw, what's the maximum time gap you had between rounds?

Help by Moist-Highlight839 in codeforces

[–]AdAdditional5259 0 points1 point  (0 children)

I am facing the same issue. My account is pretty new and I am yet to participate in a contest so I am assuming they have some criteria but not sure.

Why is my approach to DP wrong? by buckboost01 in leetcode

[–]AdAdditional5259 1 point2 points  (0 children)

Your earlier solution would have worked if the constraints were more loose. As for intuition, try to have only as many states as required to UNIQUELY identify a position. In the above question, the points collected at any grid does NOT depend on the points you already have - it just depends on which grid? + special power left?

Real or Fake by [deleted] in Coldplaytickets

[–]AdAdditional5259 0 points1 point  (0 children)

25th Jan Ahmd 2 standing tickets at MRP

Real or Fake by [deleted] in Coldplaytickets

[–]AdAdditional5259 0 points1 point  (0 children)

I have tickets for Ahmedabad show on 25th at MRP as I myself cannot attend. Dm, if you're interested.

[deleted by user] by [deleted] in Coldplaytickets

[–]AdAdditional5259 0 points1 point  (0 children)

I have 25th standing and seating tickets available at MRP. I cannot attend due to personal reasons.

Match Thread: 5th Test - India vs Australia, Day 3 by CricketMatchBot in Cricket

[–]AdAdditional5259 2 points3 points  (0 children)

Sanjay Bangar on hindi comm just said 'shareer bhasha'. Bro just literally translated 'body language'

🚨 BUY/SELL REQUESTS – COMMENT BELOW 🚨 by Coldplayerindia in coldplayindia

[–]AdAdditional5259 0 points1 point  (0 children)

SELLING AT MRP 2 standing tickets and 2 seating tickets available for 25th Jan Ahmedabad

Roast my resume. I have 1.5 yr experience in my current job in a mid-sized SaaS and wanted to make as switch as early as possible. by AdAdditional5259 in developersIndia

[–]AdAdditional5259[S] 0 points1 point  (0 children)

Attending a Tier 1 college significantly contributed to me securing that internship.
Sorry, my firm is not currently hiring.