#!process citadel reject after I solved
1 messages · Page 1 of 1 (latest)
R1 funny enough
Some like buy or sell stock
Low key wasn’t that hard
Yea
Yea
I thought I did
Maybe I said sum wrong?
dam got mine next week
Like price time stamp and then you have to decide if to by something based on latest stock price at least y units of time before and change of x something like that it was a vague problem no starter code had to do it from scratch so I’d
idk tbh interviews are a lot of times subjective, ive gotten rejected after doing everything right too
Idk
dont worry too much
Nah you’ll be fine
is it similar to buy and sell stock lc?
No very different
I interpreted it as like time based key value store or at least solved mine with binary search and he seemed to not mind it
No he doesn’t say all that all they said is design an api that given a stocks price, timestamp and a configurable x and y value you have to do this
Low key could also be how I communicated during the interview while I was coding
There was no started code it was a blank code road
*pad
yeah i just dont want to look like a fool ts interview and get blacklisted
so its not like an array of tuples?
I got auto rejected at 5 am pst today lmao I hope I’m not blacklisted for whatever reason
lolll im sure not
No it’s like a class design
ohhhh ok
So you have a function that injests new stock price and checks to buy or not based on what I described
I guess there is an lc kinda like this
I forgot maybe time based key value store?
Like some random params you configure
It’s like you have to compare the current price to another price that’s at least if not more than y units of time more
And if the stock at those times differ by x percent you buy
im assuming the timestamp is increasing?
Yea I assumed it’s increasing and no need to sort everytime he said ye
i see
sounds like a queue problem
lol
and is the amount of gap time consistent for the class, or is it defined in the function sig
that kind of changes the approach too
It’s defined for each stock
good
cuz i just FLUNKED THAT SHIT HAHAHA
LMFAOOOO
I GENUINELY PUT ON A POOPY BUTT PERFORMANCE
damn did you get asked a hard
nah i just didnt really care
i was trolling a bit
id say it was a LC medium