#did u solve all the questions optimally ?

1 messages · Page 1 of 1 (latest)

humble atlas
#

title

heady geyser
#

Hc?

kind lantern
#

why do u think u got the reject? also when was ur final

woeful stag
#

.

foggy heart
#

did u solve all?

twilit lynx
#

.

junior prairie
#

g

coral mortar
#

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

shadow ocean
#

did u only have 2 interviews

#

tehcnicals

coral mortar
coral mortar
shadow ocean
#

damn no followup technical is a bummer

lofty dock
#

tagged qs?

glossy peak
#

.

coral mortar
#

8 days and no

coral mortar
tranquil drift
#

Is ur recruiter initials TG

glad timber
sacred crag
#

what did you get asked?

plush breach
#

i don’t know why they say no dp and then give you recursion with memoization

sturdy sundial
#

dm

#

me

sacred crag
#

?

heady urchin
#

Dude f that interviewer

coral mortar
coral mortar
stoic jolt
sturdy sundial
vocal lagoon
sacred crag
#

first they rejected

#

secondly they’re not here

#

third they can’t confirm your identity through discord, discord protects your identity

coral mortar
#

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

sacred crag
#

they don’t even know who you are dw

#

you’re the goat

#

appreciate it

sacred crag
#

i think it’s DP + bfs

shadow ocean
#

why dp?

sacred crag
#

if i’m not mistaken?

#

optimization for value

#

basically need to memoize results

coral mortar
shadow ocean
#

unlucky af

sacred crag
#

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

shadow ocean
#

Is the range sum followup dp?

coral mortar
#

i said to just precompute and do a prefix sum assuming max value is nto that big and interviewer seemed satisfied

sacred crag
#

wdym by prefix sum?

shadow ocean
#

Oh yeah

sacred crag
#

just compute it once, if tree doesn’t change

#

return that value from then on

#

unless i misunderstood you

coral mortar
#

yeah but the ranges could change

#

the range they wanna query on

sacred crag
#

ohhh

sacred crag
stable marsh
#

ty boss

vocal lagoon
#

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?

robust jackal
#

@coral mortar when did you interview?

coral mortar
#

8 days ago

robust jackal
#

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?

sacred crag
#

i doubt it lol

robust jackal
#

he didnt solve it immediately but did solve it eventually

sacred crag
#

they don’t like that

shadow ocean
#

If thats the case I might be cooked then, didnt solve immediately but grabbed onto hints and solved it eventually with time to spare

sacred crag
#

if you don’t know it off the beginning basically it’s alr a coin flip

#

depending on interviewer

shadow ocean
#

But I didnt get asian interviwewers so thers a chance ig

sacred crag
#

wait actually @coral mortar can you check your dms and lmk if you got any of the same interviewers

coral mortar
#

yeah maybe i'm bad at behavioral thought i did fine

sacred crag
#

maybe 🤷‍♂️ but i doubt it

peak wing
#

for kth largest element did u use heap?

#

or bucket sort

#

n log k good enough or na

slate coyote
vocal lagoon
#

no way

sturdy sundial
#

I used quick select but interviewer asked to do whichever one

sacred perch
#

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?

sturdy sundial
foggy heart
#

quick select is n^2 worst case tho

sturdy sundial
foggy heart
peak wing
#

So u can do heap and its fine

#

(n log k soln)

#

?

sturdy sundial
foggy heart
#

is quick select better than bucket sort

sturdy sundial
sacred crag
#

for top k elements

#

u got asked top k elements?

stoic jolt
peak wing
#

@sacred crag do uk if heap is good enough

sacred crag
#

no clue

#

ig we'll find out if i get it

sturdy sundial
#

I heard somebody say heap might be good