Facebook Interview Questions

Given an array, please determine whether it contains three numbers whose sum equals to 0.

Given an array and a value, how to implement a function to remove all instances of that value in place and return the new length? The order of elements can be changed. It doesn't matter what you leave beyond the new length.

Given an array of numbers and a sliding window size, how to get the maximal numbers in all sliding windows?

How to implement a function to check whether there is a path for a string in a matrix of characters? It moves to left, right, up and down in a matrix, and a cell for a movement. The path can start from any entry in a matrix. If a cell is occupied by a character of a string on the path, it cannot be occupied by another character again

Numbers are serialized increasingly into a sequence in the format of 0123456789101112131415..., which each digit occupies a position in the sequence. For instance, the digit in the position 5 is 5, in the position 13 is 1, in the position 19 is 4, and so on.
How can you implement n (n > 2) stacks in a single array, where no stack overflows until no space left in the entire array space?

A string can be partitioned into some substrings, such that each substring is a palindrome. For example, there are a few strategies to split the string “abbab” into palindrome substrings, such as: “abba”|”b”, “a”|”b”|”bab” and “a”|”bb”|”a”|”b”.
Given a string str, please get the minimal numbers of splits to partition it into palindromes. The minimal number of splits to partition the string “abbab” into a set of palindromes is 1.
There are n houses built in a line, each of which contains some value in it. A thief is going to steal the maximal value in these houses, but he cannot steal in two adjacent houses because the owner of a stolen house will tell his two neighbors on the left and right side. What is the maximal stolen value?

No. 47 - Search in a Rotation of an Array
When some elements at the beginning of an array are moved to the end, it gets a rotation of the original array. Please implement a function to search a number in a rotation of an increasingly sorted array. Assume there are no duplicated numbers in the array.


  1. I'd like to buy your book in pdf form. I don't care about kindle and I don't have one.
    How can i do that so you get the maximum profit?

    1. The PDF format is available on the press website. You may buy it from the following URL: http://www.apress.com/9781430247616. Thank you.

    2. Tks very much for your post.

      Avoid surprises — interviews need preparation. Some questions come up time and time again — usually about you, your experience and the job itself. We've gathered together the most common questions so you can get your preparation off to a flying start.

      You also find all interview questions at link at the end of this post.

      Source: Most common interview questions and answers

      Best rgs

    3. This comment has been removed by the author.

    4. NayHoh,

      I’ve often thought about this Facebook Interview Questions. Nice to have it laid out so clearly. Great eye opener.

      I'm new to Linux. Well, relatively, I haven't used it since the early 90's but now I'm pursuing my Engineering degree in computers and electronics so I figured it's time to start refreshing my memory as well as learning the system all over again.
      As a process executes it changes state according to its circumstances. Unix processes have the following states:
      Running: The process is either running or it is ready to run. Waiting: The process is waiting for an event or for a resource. Stopped: The process has been stopped, usually by receiving a signal. Zombie: The processes are dead but have not been removed from the process table.
      I read multiple articles and watched many videos about how to use this tool - and was still confused! Your instructions were easy to understand and made the process simple.

      Thank you,

  2. Good questions - I didn't run into them when I was looking for FB interview questions, here's what I got: http://alfasin.com/facebook-interview-questions/

  3. thanks for the questions, but the main weak point when facing the interview is nervousness, we need to relax otherwise it could be the main reason to fail in an interview. Wisdomjobs-story:scaling from 40 Google group members to 28 Million job seekers/

  4. Tks very much for your post.

    Avoid surprises — interviews need preparation. Some questions come up time and time again — usually about you, your experience and the job itself. We've gathered together the most common questions so you can get your preparation off to a flying start.

    You also find all interview questions at link at the end of this post.

    Source: Download Ebook: Ultimate Guide To Job Interview Questions Answers:

    Best rgs

  5. Aucun de ses piratage Facebook fonctionne aujourd hui plus rien de marche sauf ce site qui est encore en ligne ▄︻̷̿┻̿═━一 http://www.facecompte.com/

    pirater compte facebook facilement

  6. Bonjour, à tous j'offre et partage des codes Free Wifi Code Orange et SFR chaque semaine pour vous connecté a internet dans toutes la france

    Mon site de partage ▄︻̷̿┻̿═━一 http://code-freewifi.com/

    free wifi identifiant gratuit

  7. Nice tutorial. Thanks for sharing the valuable info about c Training. it’s really helpful. Who want to learn c language this blog most helpful. Keep sharing on updated tutorials…..

  8. Great blog created by you. I read your blog, its best and useful information. You have done a great work. Super blogging and keep it up.
    php jobs in hyderabad.

  9. ezTalks is the world's leading online video conferencing provider that enables you to connect with people anywhere and anytime.
    video conferencing free
    desktop sharing software

  10. • Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingAzure Online training Hyderabad

  11. This comment has been removed by the author.

  12. This is a very nice article. Thank you for publishing this. I can understand this easily. Blockchain Online Training

  13. Hi, nice blog. This is very informative, thanks for sharing!
    Keep blogging.. DevOps Online Training

  14. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    python training Course in chennai
    python training in Bangalore
    Python training institute in bangalore

  15. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    rpa training in bangalore
    best rpa training in bangalore
    rpa training in pune | rpa course in bangalore
    rpa training in chennai


  16. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.

    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training
    Selenium training in bangalore

  17. Good Post. I like your blog. Thanks for Sharing
    Python Training in Noida

  18. Thanks for this blog. I have also prepared top listed Devops Interview Questions for beginners. Please look into it.And share your feedback by replying my comment.

  19. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously in their life, he/she can earn his living by doing blogging.thank you for thizs article. blockchain online training