apple GHC 电面题目分享

First Round at GHC’19

Phone Interview

  • Implement a Queue in C (handle some special cases)
  • Implementation details of conditional variables, mutexes and semaphores in OS for the above code.
  • Multiple questions on various concepts in OS, Computer architecture and basics of compilers.

海投的电面

//leetcode.com/problems/valid-anagram/

After I had solved the question, I was asked to design a very high level ‘Vending Machine’. No restrcitions and very simple use case of selecting an item and getting its price; wasn’t asked to code anything.