#did u solve all the questions optimally ?
1 messages · Page 1 of 1 (latest)
Hc?
why do u think u got the reject? also when was ur final
.
did u solve all?
.
g
solved 3/4 immediately optimally, last one interviewer trolled me and fumbled my way to optimal solution but didn't have time for follow ups
yes
not sure
damn no followup technical is a bummer
Wdym by interviewer trolled u
tagged qs?
.
Was thinking of dp solution for tree question and interviewer doesn't consider dfs with memoization as dp on trees and guided me away from intended solution
8 days and no
some
Is ur recruiter initials TG
Oh I think Meta does not consider Memoization as DP
what did you get asked?
i don’t know why they say no dp and then give you recursion with memoization
?
Dude f that interviewer
so true david
I signed an nda (can they sue me)
you can dm, up to you, ppl do it all the time
if so, I would like to know the question as well :)
Yeah me too
Bruh they aint doing nothing after rejecting you
me too if u dont mind 🙏
they can’t sue you
first they rejected
secondly they’re not here
third they can’t confirm your identity through discord, discord protects your identity
Me too, pretty please
Kth largest element in array
Range Sum of BST (Follow up: how would you optimize it if the tree doesn’t change and your function is called many time)
Find local min in an array (Follow up: optimize time complexity from naive approach)
Find subset of nodes in a binary tree such that no two nodes are adjacent and the sum is maximized
Enjoy everyone and Meta don't sue me plz
Can u bfs the last q?
i think it’s DP + bfs
why dp?
dp and dfs is what i ended up doing and interviewer seemed satisfied with it
unlucky af
But that’s a scam
they said you can solve problems
without dfs
in the email
without dp***
what’s the alternative option lol a 2^n algo???
lmao
Is the range sum followup dp?
i said to just precompute and do a prefix sum assuming max value is nto that big and interviewer seemed satisfied
wdym by prefix sum?
Oh yeah
just compute it once, if tree doesn’t change
return that value from then on
unless i misunderstood you
ohhh
so you stored the sum up until a certain node for each node
ty boss
for the 3rd one is it just find peak element but minimum, so find non peak element?
want to make sure i understand it correctly, for 4th we return the max 'path' such that no two nodes are adjcaent?
@coral mortar when did you interview?
8 days ago
so u ended up solving 4/4 but still got rejected?
just because you couldnt get to a follow up?
could it have been the behavioral in that case?
i doubt it lol
^
^
he didnt solve it immediately but did solve it eventually
they don’t like that
If thats the case I might be cooked then, didnt solve immediately but grabbed onto hints and solved it eventually with time to spare
if you don’t know it off the beginning basically it’s alr a coin flip
depending on interviewer
But I didnt get asian interviwewers so thers a chance ig
wait actually @coral mortar can you check your dms and lmk if you got any of the same interviewers
yeah maybe i'm bad at behavioral thought i did fine
maybe 🤷♂️ but i doubt it
I think they require the quick select solution
no way
I used quick select but interviewer asked to do whichever one
It really depends on the expectation of the interviewer. But choosing the optimal is most safe. Who knows he is a nice guy or not?
but choosing quick select and not knowing how to code and to change to heap is crimial
quick select is n^2 worst case tho
But average is O(n) which prevails most of times because we are choosing a number at random. The interviewer did ask me this.
did u start w quick select or heap then he asked u to optimize? bucket sort is also O n tho
I told 3 approaches and i said quick select is most optimal, i asked which one. He asked do whichever one you like
is quick select better than bucket sort
I think you confusing quick sort with quick select
quick select is the algo
for top k elements
u got asked top k elements?
for range sum of bst follow up, did you have to code it?
@sacred crag do uk if heap is good enough
I heard somebody say heap might be good
