Apple | Phone Coding | Jan 2020 [London] [Reject]

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-02-18Added By Anonymous
Source: Link

I only had one problem to solve and then a follow up.

For the problem to solve, there were 3 testcases and everything..so the code you are writing needs to compile, run etc


Problem was similar to this one :

https://leetcode.com/problems/number-of-islands/


Follow up was : if we receive as an input only one row at the time, how would we compute the number of number of islands? Something similar to this one:

https://leetcode.com/problems/number-of-islands-ii/


I did not know how to solve the follow up and i think that's why i got rejected.

Comments