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.
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
just use "using namespace std" Believe me, cracking interview with java is harder than c++
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.
Did the interviewer/recruiter specify that the interview has to be done in Kotlin?
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.
Try swift