What to prepare for FB phone screen

Aug 19, 2018 14 Comments

I have scheduled 45 minutes phone screen for frontend engineer @Facebook. What to except? What to prepare? Will they ask leetcode or just vanilla js with some design?

comments

Want to comment? LOG IN or SIGN UP
TOP 14 Comments
  • PayPal / Eng rockerzone
    JavaScript. Mostly implementing a library function and one HTML CSS js design
    Aug 19, 2018 10
    • PayPal / Eng rockerzone
      Aug 20, 2018
    • Amazon cnnm16
      Well hell I guess slapping your own busywait / blocking event loop on top sort of works, but that's not really what setTimeout does so I didn't consider that a valid implementation. The non-blocking version on that page depends on a magic "sleep" function which appears to defer to the JVM's Thread.sleep in the example and that seems to violate the spirit of the question also. If you're allowed to dive into JVM there are much simpler implementations than that one

      Busywait must be what they were looking for
      Aug 20, 2018
    • Amazon
      nizzle

      Amazon

      PRE
      Google, Uber
      nizzlemore
      Sorry it was not in javascript, it was for the js runtime in C++. The general idea is to maintain a pq of jobs to run - and setTimeout guarantees that the scheduled job will be run AFTER x milliseconds (not necessarily at the x ms mark), and the main interpreter loop simply dispatches eligible jobs to workers continuously.
      Aug 20, 2018
    • Amazon cnnm16
      That makes way more sense
      Aug 20, 2018
    • Glassdoor kko
      ah then it is just a concurrency problem. makes a lot more sense
      Aug 20, 2018
  • Leetcode. Search for recent interview experiences.
    Aug 19, 2018 0
  • So if I have done 0 JavaScript and am not a front end dev am I still fair game for js questions for fb interview ?
    Jul 11 0
  • Yahoo Dumbdumb
    I was asked to implement throttle/debounce
    Aug 20, 2018 0