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?
TOP 13 Comments
- 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 forAug 20, 20181