YourAlly

Apple Senior Principal coding interview questions

These are the 7 coding questions YourAlly has tagged for Apple at Senior Principal. Senior Principal is the common India title for this level. YourAlly treats it as Senior staff, the same level as Google L7, Meta E7 and Amazon L8.

A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level coding is often a smaller part of the loop, but the bar for clarity and speed stays high.

Practice a mock Apple Senior Principal coding loopPractice Apple coding questions

Run-Length EncodeFree to read

Run-length encode a string of letters (counts >1 only). Input: aaabbc Output: a3b2c

6 more coding questions

  1. Recover Keyboard Locale Ordering Locked
  2. Thumbnail LFU Cache Locked
  3. Visible Outline of Stacked Widgets Locked
  4. Longest Unique Substring Locked
  5. Minimal Edit Script Locked
  6. Validate IPv4 CIDR Containment Locked

Sign up free to practice all 7

Related pages

More Apple Senior Principal rounds

Apple coding at other levels

Other companies at this level

Company guide

Apple interview guide in Academy