4.6 of 5 634 reviews
www.facebook.com Menlo Park, CA 5000+ Employees

Facebook Software Engineer Intern Interview Question (student candidate)

I interviewed in Menlo Park, CA and was asked:
"check palindrome, print subsets, multiply numbers in string."
Add Tags [?]
Answer Flag Question

Part of a Software Engineer Intern Interview Review - one of 998 Facebook Interview Reviews

Answers & Comments

of 0

#include <string>
#include <cassert>

bool checkPalyndrome(const std::string& word) {
  if (word.size() <= 1) {
    return true;
  if (word[0] != word[word.size() - 1]) {
    return false;
  return checkPalyndrome(word.substr(1, word.size() - 2));

int main() {
- Anonymous on Dec 12, 2013 Flag Response

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at Facebook interview questions and advice. All interview reviews posted anonymously by Facebook employees and interview candidates.