Bombed my coding round and don't really know what I learnt from it.
Anonymous User
2137

I gave my coding round for the company posted here: https://leetcode.com/discuss/post/6028435/openai-phone-screen-questions-results-ne-p8s5/ Writing this so I remember for myself. I was nothin short of a deer in headlights. My coding performance was absolute trash! I have over 7yrs work experience in big tech, decent leetcoding skills, so I just can't believe how poorly I performed. (rant!!!)
When I saw my interviewer paste the question, I got super excited. Went straight to write code (I thoght it was same as that post). Didn't F**ing bother to see test cases, function params, nothing.
I ran my code and few tests fail. After this I froze since I could see my code to be absolute trash at this point. Anyway, the question had further modifictaion
we have 3 calls to implement: transaction(ts, some_id, amount, expiration_timestamp), subtract(ts, amount),get_balance(ts)...expiration_timestamp drove me nuts, it is the timestamp at which the amount you got/left out after subtractions will be voided/wiped
Transactions are not ordered. If the have a stock_id , they also come with expiration_timestamp. So after that TS any remainder amount initially set has to be obliterated. If you solve it, please paste your solution. I am giving up on interviewing, and will go swim in the lake instead. :cry

Comments (1)