Google Phone Screen || L3

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-02-16Added By Anonymous
Source: Link
🧭 Experience: unknown ✅ Outcome: unknown 💰 Compensation: unknown 📍 Location: unknown 🏢 Company: Google 🎓 Education: unknown 🎁 Benefits: unknown 📅 Offer Date: unknown Discussion gone like this, He is not an Indian interviewer, came 5 mins late and 5 mins random discussion about stack(since we both have common tech stack), And jumped to simple question. You will be given a string, you have to tell first index where present character is lower than previous character. Eg: "BDDIKXEB" : return Es index So i told basic for loop approach , and he asked me unit tests where it fails i written some empty string and similar characters string ("AAAA") . He is ok with this but pointed out string input can be other than capital letters, which i didn't asked him for clarification of input. After this he asked follow up question, 1) Instead of returning first character's index return total number of chaarcters. 2) What are the minimum characters I have to remove so that answer for the follow up 1 should be zero i.e, no character is greater than previous character after removing min no. of characters. So, i explained him DP solution like LIS, he asked about TC and Iam ready to code but, he told running out of time at exactly 45 mins (mostly time went on first question discussion and initial 10 mins is wasted ). Can anybody tell what are the chances of my onsite rounds as I didnt wrote code for dp, and he said that i had to clarify inputs for strings, how many days it will take for recruiter to reach out whether it is rejection or onsites?
Comments