Home » List of Companies » Facebook Interview Questions
Facebook/Meta Interview Questions for Product Engineering
Experience Level: Any no of years
Skills Set Required: Any object oriented programming language
Duration: Both interviews were 45 minutes
Number of Interviewer: First round 2 Persons | Second round 1 Person
Mode: Video chat via Zoom
Type of Job: Fulltime/Remote
Note: You can use any Object Oriented Programming Language agnostic, facebook engineers can use any OOP Language including C++ for the development.
Their top 3 languages here are Java, C++ & Python and you can use any language you want in the interview process as well as you day to day role here.
First Round (Coding Interview via Coderpad Link)
/* """
Given an array of integers greater than zero, determine if it is possible to
split it in two sub-arrays (without reordering the elements of the original
array), such that the sum of the values in each of the two resulting
sub-arrays is the same. If so, print the two resulting sub-arrays.
=== Test cases ===
In [1]: can_partition([5, 2, 3])
Output [1]: ([5], [2, 3])
Return [1]: True
In [2]: can_partition([2, 3, 2, 1, 1, 1, 2, 1, 1])
Output [2]([2, 3, 2], [1, 1, 1, 2, 1, 1])
Return [2]: True
In [3]: can_partition([1, 1, 3])
Return [3]: False
In [4]: can_partition([1, 1, 3, 1])
Return [4]: False
""" */
procs | memory | swap | io | system | cpu | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
r | b | swpd | free | buff | cache | si | so | bi | bo | in | cs | us | sy | id | wa | st |
5 | 4 | 0 | 561332 | 1698668 | 32809600 | 0 | 0 | 0 | 1324 | 3149 | 8484 | 33 | 1 | 47 | 19 | 0 |
5 | 4 | 0 | 554724 | 1698688 | 32809648 | 0 | 0 | 0 | 1439 | 3177 | 10347 | 30 | 1 | 51 | 18 | 0 |
5 | 4 | 0 | 556532 | 1698688 | 32809712 | 0 | 0 | 0 | 1304 | 3168 | 6853 | 31 | 1 | 58 | 11 | 0 |
5 | 4 | 0 | 517944 | 1698696 | 32809792 | 0 | 0 | 0 | 1360 | 3345 | 10589 | 31 | 1 | 53 | 15 | 0 |
5 | 4 | 0 | 477476 | 1698748 | 32836968 | 0 | 0 | 0 | 1459 | 3819 | 20150 | 39 | 1 | 42 | 17 | 0 |
Description of each field
Procs:
r running/ready
b blocking
memory
free free
swpd swapped
buff buffered
cache cached
swap
si swap in
so swap out
io
bi block in
bo block out
system
in interrupts
cs context switches
cpu
us user space
sy system space
id idle
wa io wait
st stolen
Other Categories
MCQ on C Programming MCQ on C++ Programming 138+C++ F2F Interview Questions Basic Computer Questions Solved C programs Solved C++ programs