4 ms·
The bar for Facebook is something like being able to solve two medium-difficulty problems in 45 minutes. If you want to test yourself, you could try these, whi
by wan23 6y ago
The bar for Facebook is something like being able to solve two medium-difficulty problems in 45 minutes.
If you want to test yourself, you could try these, which are popular questions:
https://leetcode.com/problems/find-all-anagrams-in-a https://leetcode.com/problems/find-all-anagrams-in-a
https://leetcode.com/problems/subarray-sum-equals-k/-string/ https://leetcode.com/problems/subarray-sum-equals-k/-string/
Note that it's not enough to present any solution - you need to present a solution that is efficient. Also, you should be able to write the solution correctly without looking up anything and without running the code before declaring that it is complete.
- vlovich123 6y agoAs someone who interviewed people applying to Facebook (or Oculus anyway), the coding tests were intentionally told to be structured as one easy question (so that the candidate could build some confidence and provide some signal) and one medium/hard coding question (ie can they write more substantial solutions and solve harder problems). That’s for the traditional “CS” coding interview. The other technical part is an open ended design question (whiteboard/hand-waving diagrams/explanations with no code).
- baq 6y ago> Also, you should be able to write the solution correctly without looking up anything and without running the code before declaring that it is complete. That’s the bullshit part. This doesn’t happen in any other context in software engineering except interviews. This just test the ability to memorize algorithms. People with a life are at a disadvantage by either accident or by design, not sure which is worse.
- philliphaydon 6y agoThose links get 404?
- Xeronate 6y agoHere you go https://leetcode.com/problems/find-all-anagrams-in-a-string/ https://leetcode.com/problems/find-all-anagrams-in-a-string/ https://leetcode.com/problems/subarray-sum-equals-k/ https://leetcode.com/problems/subarray-sum-equals-k/ Optimal answers expected.
- philliphaydon 6y agoThanks, links work.