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

SWE Intern

Google
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Arrays, Maps, Searching, Sorting, Linkedlist, Queues, Stacks
Tip
Tip

Tip 1 : Strong DS algo
Tip 2 : Solve lots of problems on GFG/leetcode
Tip 3 : Good resume

Application process
Where: Other
Eligibility: No eligibilty criteria
Resume Tip
Resume tip

Tip 1 : Mention all the projects
Tip 2 : Make it of 1 page only

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date16 Aug 2020
Coding problem2

For the online coding test, we got two coding questions out of which I was only able to solve one and the other one partially, where only some test cases passed. 

1. Find all anagrams

Easy
15m average time
85% success
0/40
Asked in companies
Thought WorksAmerican ExpressWalmart

You have been given a string STR and a non-empty string PTR. Your task is to find all the starting indices of PTR’s anagram in STR.

An anagram of a string is another string which contains the same characters and is obtained by rearranging the characters.

For example: ‘SILENT’ and ‘LISTEN’ are anagrams of each other. ‘ABA’ and ‘ABB’ are not anagram because we can’t convert ‘ABA’ to ‘ABB’ by rearranging the characters of particular strings.

Note:

1. Both STR and PTR consist of English uppercase letters.
2. Length of string 'STR' will always be greater than or equal to the length of string ‘PTR’.
3. In case, there is no anagram substring, then return an empty sequence.
4. In case of more than one anagrams, return the indices in increasing order.
Try solving now

2. Binary strings with no consecutive 1s

Moderate
25m average time
65% success
0/80
Asked in companies
SwiggyPaytm (One97 Communications Limited)Amazon

You have been given an integer 'N'. Your task is to generate and return all binary strings of length 'N' such that there are no consecutive 1's in the string.


A binary string is that string which contains only ‘0’ and ‘1’.


For Example:
Let ‘N'=3, hence the length of the binary string would be 3. 

We can have the following binary strings with no consecutive 1s:
000 001 010 100 101 
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

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Google
1332 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 4 problems
Interviewed by Google
904 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 4 problems
Interviewed by Google
1192 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 3 problems
Interviewed by Google
297 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SWE Intern
4 rounds | 6 problems
Interviewed by Microsoft
2102 views
0 comments
0 upvotes
company logo
SWE Intern
4 rounds | 6 problems
Interviewed by Dunzo
719 views
0 comments
0 upvotes
company logo
SWE Intern
4 rounds | 5 problems
Interviewed by Microsoft
0 views
0 comments
0 upvotes