Amazonenderpearl

Apple Interview in C++

I have an Apple interview coming up soon (recruiter contacted me and I have to do the interview within couple weeks or so), and the position uses C/C++ so the interview will be done with C/C++ I worked in C++ in the past (for 1.5 yrs at Amazon other 1.5 in other languages), but I'm not the best at it because I learned it on the job and had to reference documentation quite often. But if the interview will be leetcode styled questions (I'm assuming) -- how will they test C++ specific (in-depth) knowledge, such as memory allocation (unique/shared pointers), defining header/source files correctly, etc.? Just wondering because I usually leetcode with Java and I'm not sure if it'd be as simple as typing variables with "auto", using "std::xxx" and etc.

Wolters Kluwer YlDQ00 Feb 16

Try swift

Amazon RangeTree Feb 16

just using pointers and reference and reference pointer is enough. You ca take an advantage from the pointet that you can update cell with a pointer (in bfs for table) and update all cells at once by chaning the pointer

Amazon RangeTree Feb 16

just use "using namespace std" Believe me, cracking interview with java is harder than c++

Microsoft M1CR0S0FT Feb 16

I interviewed for a job at Apple a year ago. The job required either Kotlin or any JVM skills. I had none. I used Go to solve the programming exercise. I didn’t finish solving the problem. I still got the job offer.

Amazon enderpearl OP Feb 16

Did the interviewer/recruiter specify that the interview has to be done in Kotlin?

Microsoft M1CR0S0FT Feb 17

Yes. They did, both the recruiter and the two interviewers but I told them I wanted to use Go. The interviewers didn’t say anything after I started writing the code. They both seemed interested in the language and let me proceed.