PhonePe | Software Engineer | August 2021- Interview Experience

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-09-20Added By Anonymous
Source: Link
🧭 Experience: unknown ✅ Outcome: unknown 💰 Compensation: unknown 📍 Location: unknown 🏢 Company: PhonePe 🎓 Education: unknown 🎁 Benefits: unknown 📅 Offer Date: unknown Round 1 : Online Proctored Code Signal Test : 5 Questions were given Could code only 2 out of 5 and 1 partial solution. Round 2 : 1. Meeting Room II :https://leetcode.com/problems/meeting-rooms-ii/ 2. Attaching an image for description of question.![image](https://assets.leetcode.com/users/images/dfc60164-3c07-4f27-ab0d-ae040963ec00_1632144341.4669898.jpeg) Given 2 images represented by squares containing only symbols B,W (in inputs of image) Some rules are given : B + W = G, B + B = B , W + W = W. Each image can be represented by a square which could be split into 4 squares(Again each smaller square could be divided in 4 squares). You have to give a representation of the image in terms of a data structure and then write a code for adding two images. Could give representation of the image in terms of a Tree but couldn't write proper solution(couldn't find a similar question) for the second question. Please suggest an approach/solution for 2nd question. Round 3 : Design Facebook Messenger.
Comments