Apple (Photos team) | Phone Screen (Rejected) | Tree of Comments and Child Comments
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2022-04-22Added By Anonymous
Source: Link
This was for the Photos org, on a team that works on the editing experience. Two interviewers on this technical screen, one focused on background questions and other gave me a CoderPad question.
I was asked to print all the comments in a discussion thread structured as a tree in mock JSON, with the level to which each child comment was nested denoted by prepending dashes. Solved and was rejected.