Google inc interview experience Real time questions & tips from candidates to crack your interview

SWE Intern

Google inc
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data structure, Algorithms, Database management System, Operating System, OOPS
Tip
Tip

Tip 1 : Practice Question Smartly(select question wisely)
Tip 2 : Be confident
Tip 3 : Work hard

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Keep it simple
Tip 2 : Mention things at which u are confident

Interview rounds

01
Round
Easy
Telephonic
Duration45 Minutes
Interview date20 Mar 2020
Coding problem1

The interview started with a brief discussion of one of the projects mentioned in my resume, then the interviewer fast-forwarded to a coding problem. I was coding on a Google Doc which the interviewer was examining at the same time. The solution to the question involved knowledge of stack, and built-around logic definitely. I was able to solve this question but was asked to optimize it further. I couldn’t think about the optimization part before a small hint was given to me by the interviewer itself. I coded the additional optimization logic too as I could grasp the hint quickly.
In the end, the interviewer gave me the chance to ask him a question. And with this, the interview ended leaving me with no positive or negative feedback about my performance.

1. Minimum Character Deletion

Moderate
15m average time
80% success
0/80
Asked in companies
American ExpressDeutsche BankMeesho

You are given a string ‘STR’. You need to find and return the minimum number of characters to be deleted from ‘STR’ so that the frequency of each character in the string becomes unique.

Example:
If the given string is “aaBBccc” then the frequency of characters: { a:2, B:2, c:3 }. Now, as ‘a’ and ‘B’ both have the same frequency 2, we need to delete one character either one ‘a’ or one ‘B’, to make their frequency different. After deleting any character we will get frequency as 1,2 and 3, as they all are different. Thus we got our solution as 1.
Try solving now
02
Round
Medium
Video Call
Duration50 minutes
Interview date30 Mar 2020
Coding problem1

The interviewer straight-forwardly jumped into the question.
PS: There were 2 interviewers in this round.

1. Convert binary tree to mirror tree

Easy
15m average time
85% success
0/40
Asked in companies
AdobeWalmartThales

Given a binary tree, convert this binary tree into its mirror tree.

A binary tree is a tree in which each parent node has at most two children.

Mirror of a Tree: Mirror of a Binary Tree T is another Binary Tree M(T) with left and right children of all non-leaf nodes interchanged.

alt text

Note:
1. Make in-place changes, that is, modify the nodes given a binary tree to get the required mirror tree.
Try solving now
03
Round
Medium
Video Call
Duration90 mintues
Interview date5 Apr 2020
Coding problem2

Time — 45 minutes
Questions asked — 2

1. Intersection of Linked List

Easy
25m average time
73% success
0/40
Asked in companies
OracleThought WorksIBM

You are given two Singly Linked Lists of integers, which may have an intersection point.

Your task is to return the first intersection node. If there is no intersection, return NULL.


Example:-
The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

alt.txt

Try solving now

2. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
IntuitSprinklrCIS - Cyber Infrastructure

You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols and whitespaces.

Note :

String 'S' is NOT case sensitive.

Example :

Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SWE Intern
1 rounds | 2 problems
Interviewed by Google inc
1122 views
0 comments
0 upvotes
company logo
L3 Engineer
3 rounds | 4 problems
Interviewed by Google inc
1706 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 4 problems
Interviewed by Google inc
1531 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 3 problems
Interviewed by Google inc
594 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SWE Intern
4 rounds | 6 problems
Interviewed by Microsoft
2319 views
0 comments
0 upvotes
company logo
SWE Intern
4 rounds | 6 problems
Interviewed by Dunzo
870 views
0 comments
0 upvotes
company logo
SWE Intern
4 rounds | 5 problems
Interviewed by Microsoft
0 views
0 comments
0 upvotes