Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

Блог пользователя Tomzik

Автор Tomzik, история, 6 лет назад, По-английски

Has anyone here done interviews with Facebook? I know they ask applicants to solve algorithmic problems, how do their problems compare with the ones of codeforces? what type of difficulty to expect? Do you think codeforce is a good training resource or should I look somewhere else?

Thanks!

  • Проголосовать: нравится
  • +26
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

Cracking the Coding Interview is a good way to prepare

»
6 лет назад, # |
  Проголосовать: нравится +72 Проголосовать: не нравится

The problems on Facebook, Microsoft and Google are usually Div2 A and B (hardly C) problems, but sometimes they ask about graphs, tries, and other data structures (that are never present on Div2 ABC).

Nikita_Babenko linked a very good reference to prepare (Cracking the Coding Interview) (don't ignore the first chapters. Explaining your experience listed on your resume is a must on some interviews).

Also https://leetcode.com/ is good to practice for problems since it have problems using on real interviews.

Another thing is mock interviews. If you have teammates, or friends doing the interviews, practice interviewing them. Explaining the solution clearly is what you have to do during interviews. Some problems can be hard (or we tend to be very nervous and don't see the easy way), so try to explain your thoughts. The interviewers usually want to know if you can solve the problems fast, but if you can't they want to know if you can get to the answer with some help. It's natural to not know everything.

Codeforces is not so good of a reference, but solving problems anywhere helps.

And good luck!

»
6 лет назад, # |
  Проголосовать: нравится +17 Проголосовать: не нравится

I've done interviews with Facebook.
I just have a quick tip to add to naumazeredo's great answer,

Be careful with details (such as ambiguity, corner cases, coding style... etc.).
naumazeredo is right about the difficulty of these questions.
However, interview questions are often asked with hidden ambiguities. This might include the size of input, range of numbers, permissible conditions (eg. can a number be used twice?) ...etc..
It's also very likely that these questions will include sneaky corner cases you need to think of before coding. You don't want to write an ugly fix for just one type of corner case.
As for coding style, the interviewers at these big-4 companies will seriously look for signals that indicate whether you're a good developer. So if you're one of those people who use a, b, c as variable names for example, quit doing so during interviews.

»
6 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

naumazeredo suggested LeetCode. It's a great source, but I want to add somthing, check out this npm cli for leetcode (https://github.com/skygragon/leetcode-cli-plugins). It has plugins, one of them is called 'company' (basically you can filter the problems by the company they were asked). Running smthng like leetcode list -t facebook will give you all the problems asked previously by facebook. If you have money I suggest buying premium for leetcode of course :) Btw, the company tags are for real, those are real problems from interviews, I encountered 3 of them at Palantir and Google.

Good luck

»
6 лет назад, # |
  Проголосовать: нравится +37 Проголосовать: не нравится

 :thinking:

  • »
    »
    6 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится +8 Проголосовать: не нравится

    What does your comment mean? a couple of months ago, I asked for tips for practicing to reach the next stage on codeforces, and 2 weeks ago I asked for tips for interview practicing. Is there anything wrong or suspicious with my questions?

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится +31 Проголосовать: не нравится

      I think that's kind of a meme: first you become blue, second you get an interview offer :)

»
6 лет назад, # |
  Проголосовать: нравится +10 Проголосовать: не нравится

I did an interview for Facebook, but the role was actually more like support for their gaming API. I failed the only question I was given: "How can Facebook compete with Steam on PC gaming market?" :)

»
6 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Is CGPA very important to get interview offer in facebook? Is it possible to select for interview in facebook with good coding skill and bad CGPA?

»
6 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Inteviewbit is a good place to practice questions for interview. It's similar to leetcode.

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I_love_Tanya_Romanova might be able to guide you

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится +9 Проголосовать: не нравится

    I'm very happy about working at Google, so I don't have any issues with my previous Facebook rejection :)

    Talking about the original question, the main thing to notice is that I find the idea of doing competitive programming to prepare for interview being quite stupid, and I'd suggest doing deliberate interview preparation instead (at sites like LeetCode).

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится +8 Проголосовать: не нравится

      I am still new so, extremely sorry if I say something stupid. I wanted to know if solving problems on codeforces during contests are helpful? I mean there you have to solve questions in given time, so would that not help during interviews?

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Also, do the big 4 consider students with non-cs and non-electrical undergrad degree to at least give the online test/telephonic round? Do you know of anyone here from non-CS who got a chance to give the interview ?

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится +3 Проголосовать: не нравится

    I had an undergrad in Electronics. I switched to CS for my masters. Last year I interviewed with FB for internships and I also got an invite for a full-time interview this year.

    I have noticed that the best way to attract FB's attention is to have hackathon wins on your resume or interesting side projects on github, algorithmic contest good rank (ACM-ICPC regionals good rank for example). Major or GPA doesn't really matter much in this case. Good luck!