All happened in October.
Compensation : 40 LPA Fixed
I applied to on of the positions on their Job portal.
Q1: Minimum operations to make the 2nd half of the string an anagram of the first half. swapping 1 character with another is 1 operation.
Q2: Given queries as [L,R], flip the sign of all the elements of array from L to R. Return the array at the end.
After this got call for cohort hiring and all 3 round will happen back to back.
Code Review a piece of code: There were a few APIs and you need to review it - check variable names, exception handling, using enums, reusing common code, synchronization and locking etc
Coding : Problem (telephone circular dial)
You have a circular dial with digits 0,1,2,...,9 arranged in that order around the circle. The dial’s pointer starts at 0. You are given a string s of digits (for example "8053") that you must dial in order.
You may rotate the pointer clockwise or counterclockwise. Moving the pointer by one position (to an adjacent digit) costs 1.
Optionally, pressing a digit might cost 1 (if the problem counts presses). I'll show both variants: rotation cost only and rotation + press cost.
Return the minimum total cost to input the whole string.
Asked to design a Rate Limiter
Got into an agrument in this, during requirement i had said I will implement the sliding window counter method (which will be an approximation) as I dont think the rate limiting needs to be completele accurate.
But during designing that, she started saying read the question again (which didnt mention anyting strict as requirement) I said the same no such thing is mentioned and I explained already my assumptions during requirement, Anyway I said if we want it to be strict we will need a sliding window log method which will use memory.
Several questions regarding my project and how i handled this and that etc.
Never got an update after the interviews. and the HR never picked my call again. HR never shared his email and communication happened over jpmc system generated mails.
Update: I had received a call about 3 weeks later saying I have cleared the interview and someone will call for team matching round.
It has been another 3 weeks since that call. and there is no update!