#!process DEFINITELY FAILED THE FUCK OUT
1 messages · Page 1 of 1 (latest)
idk maybe i’m just stupid and overthought efficiency but i spent an hour coming up with some stupid math solution
instead of just
loop
like it works
but
there was a third stage
after where i was
wait lmaooo
is this the question where they ask you to like distribute stuff across buckets
is it like you have a certian number of things and you fill them up
but you have to fill them in left to right
if you have something else, you do a left to right again
meaning that the thigns to the left will have athe most items if you cant ditribute things equally
yeah it’s kinda like that
just the order didn’t matter
as long as it was the same every time
and distributed as optimally as possible
SO if you had four buckers, and 13 items
bucket 1 will have 4 items
bucket 2 will have 3 items
bucket 3 will have 3 items
bucket 4 will have 3 items
is that correct?
if so, i know the math for this
i was trying to distribute it such that it wouldnt be left skewed in this case
so liek
4 3 3 4 3 3 3 4
or something
and that was fucking me up
yeah idk why i didnt think that
4 4 4 3 3 3 3 3 was ok
this was all from last year though they wont give me an oa this year 
for this,
you could do (int) (number of items / number of buckets) (if current position <= (number of items / number of buckets) add 1)
or you could use a while loop and be taking out
yeah 4 4 4 3 3 3 3 3 isnt that hard
its just this i couldnt figure out but i was doing it for no reason
issa ok brother
I feel that
yo wtf you cracked bro save us some jobs
?
twitch rh dd final
O
still waiting for them, not looking forward
very stressy
btw ty ty
there's a few more as well
do you have any other offers alr
but they haven't confirmed
0
just lots of final rounds
well
0 I want to take
I also only learned about the bucket stuff in a distributed systems course
if that helps at all
which is a final year course at my school
ty ty
can i ask what your prev exp looks like lol
3x big tech
as a junior? dang
eh I'm a bit older
gap year + coop year
- aboard stuff
so I'm taking my time