Facebook Interview Report
- 2of 2 votes
AnswersDesign the Facebook newsfeed for an Android app. The actual design would be very complex so you may limit your solution to only status updates and photo posts. Keep your answer broad rather than deep since it would need to fit in a 45-minute interview.
- Barry Fruitman March 20, 2013 in United States
Normally you would need to ask the interviewer a lot of questions but since that is not possible here, state your assumptions.| Report Duplicate | Flag | PURGE
Facebook Software Engineer / Developer Android - 1of 1 vote
AnswersImplement this Java function:
- Barry Fruitman March 20, 2013 in United States
int findNeedleInHaystack(String haystack, String needle)
If needle is a substring of haystack, it should return the index of needle.| Report Duplicate | Flag | PURGE
Facebook Software Engineer / Developer Algorithm - 2of 2 votes
AnswersWrite a function that takes a string and returns true if the entire string is a palindrome, otherwise return false. The function should be case-insensitive and ignore any whitespace or punctuation.
- Barry Fruitman March 20, 2013 in United States
For example, return true for:
"A man, a plan, a canal: Panama."| Report Duplicate | Flag | PURGE
Facebook Software Engineer / Developer Algorithm - 6of 6 votes
AnswersWrite a function that accepts two or more strings and returns the longest common substring in all of them.
- Barry Fruitman March 20, 2013 in United States| Report Duplicate | Flag | PURGE
Facebook Software Engineer / Developer Algorithm