Facebook Data Scientist | October 2020

?
AnonymousApril 5, 2021, 01:12 AM
Upvote
1
Downvote

Position: Data Scientist

Location: nan

Level: nan

Outcome: NA

How was the interview process? What was it like?

`nan`

`nan`

What was one of your solutions?

`def friendgroup(a,b): #a is accepted list , b is removed`
`  h={}`
`  r={}`
`  l=[]`
`  `
`  for i in a:`
`    j=i`
`    friends=str(sorted([j[0],j[1]]))`
`    if friends in h:`
`      h[friends].append(j[2])`
`    else:`
`      h[friends]=[j[2]]`
`  for k in b:`
`    j=k`
`    friends=str(sorted([j[0],j[1]]))`
`    if friends in r:`
`      r[friends].append(j[2])`
`    else:`
`      r[friends]=[j[2]]`
`  for p in r:`
`    if p in h:`
`      k=sorted(r[p])`
`      #print(k)`
`      o=sorted(h[p])`
`      for i in range(len(k)):`
`        w=str([p,o[i],k[i]])`
`        w=w.replace("[","")`
`        w=w.replace("]","")`
`        `
`        l.append((p,o[i],k[i]))`
`        `
`  return l`

Data Scientist
I
Ichimoku
Top comment
Lorem ipsum dolor sit amet, consectetur adipiscing elit
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
F
Fibonacci
Sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et

quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est
I
Ichimoku
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium 😀
F
Fibonacci
Sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et

quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est
There's so much more to Interview Query! Sign up to access hundreds of interview questions, expert coaching and a flourishing data science community.