Hi guys, I’ve always solved algorithms and ds questions on leetcode and other platforms using C++. Now I have an onsite with Facebook (for an iOS position) to prepare for and was told by the interviewer that I should use Obj-C or Swift (chose ObjC) So has anybody had to use ObjC to answer LC Type questions during their onsite as well?? Thanks!
Wait why would you choose objc over swift?
I have a startup and wrote the iOS app many years ago in ObjC. We’ve maintained it since we don’t have the resources to rewrite it in Swift and that’s been the language I’ve been using for creating iOS apps until now (have written 2 or 3 in Swift but don’t feel confident)
I would highly recommend using ObjC or Swift, unless there is a strong reason which you can explain to your interviewer for the C++ code. FB would be expecting you to code in ObjC if you do get a job since its an iOS position. LC has pretty good support for Swift at least and that's what I used for my interviews.
Thanks for your answer! did you interview onsite there as well? I'm really curious about the type of questions I might get asked (regarding the iOS portion of it) and also if the level would be the same as a general SE position. The resources for specific iOS are kinda random on Glassdoor.. Appreciate it!
Yes, I ended up receiving and accepting an offer after the onsite. As for the type of questions, there is no set rule but the general format for coding rounds is similar to your phone screen- The interviewer will start with a knowledge based question (e.g. Explain different methods of communication between classes in iOS) followed by 2 coding questions. Of the two coding questions there will probably be one iOS related question(a DS/Algo question with an iOS twist) and one DS/Algo question. The other question is probably something similar to what you would find on LC(Medium). Hope that helps.
I would never want to use objective c in an interview. I have never seen it go well. Just write C++ and then put a “.mm” at the end of the whiteboard.
Yeah, that’s what I told my recruiter..but he said that it’s an interview for an iOS position and that if I don’t use ObjC or Swift that might signal lack of knowledge on the platform and whatnot :/
I interviewed as an Android engineer at FB and am currently an iOS engineer here. There’s very very little Swift or Kotlin in our codebase, and there’s way more c++ than swift in the iOS app. I would interview in what makes you most comfortable and make sure you show platform knowledge in the manager interview and the design interview.