Update appNew update is available. Click here to update.
SDE - Intern
American Express
upvote
share-icon
4 rounds | 10 Coding problems
views
1075 views
comment
0 comments
upvote
6 upvotes
Interview preparation journey
expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, Operating System, DBMS, Dynamic Programming, Backtracking
Tip
Tip

Tip 1 : Do practice a lot of data structures from renowned websites like LeetCode and also from CodeZen
Tip 2 : In your introduction, when asked, you just need to tell your life story.
Tip 3 : Maintain eye contact with the interviewers and clarify every details about the question before proceeding to the solution

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1: Add most recent and relevant projects only
Tip 2: you should know each and everything written on your resume

Interview rounds
01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date29 Aug 2020
Problems3
Find the length of the longest switching sub-array. An array is called switching if all numbers in even positions are equal and all numbers in odd positions are equal.

You are given an array 'ARR' of 'N' positive integers. You need to find the length of the longest switching contiguous subarray.

view more
Problem approach

It's like a sliding window problem.
We keep track of even and odd equality with 2 variables, even and odd.
Whenever we come across a unmet condition, like index even but not equal with even variable and same goes for odd, we first
Record the length till now in max_len.
Reset start to i-1 as this is need incase of all elements equal.
Reset even and odd according to current index i...

view more
Try solving now
Chips at Casino

Given two integer N and K representing number of chips a person has and the number of chips he can use at max at a time, return the minimum number of rounds that are necessary for John to leave the casino with N chips, having placed all-in no more than K times. If the person bets C chips and wins he gets 2C chips back and if he loses he doesn't get anything.

Problem approach

It was a dynamic programming question but I was able to solve it with recursion as well.
The approach was simply, that if he wins then he gets 2C chips back. that means 1 turn is used to deploy half the chips he had. while in the other case he just loses a chip and same number of turns are restored.

Given a string S consisting of N lowercase letters, return the minimum number of letters that must be deleted to obtain a word in which every letter occurs a unique number of times.For Ex - "aaaabbbb" should return 1, as when we delete 1 a or 1 b , a and b will have different frequencies.

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.

Ex...
view more
Try solving now
02
Round
Easy
HR Round
Duration40 minutes
Interview date5 Sep 2020
Problems1
Problem approach

Tip 1: Be confident answer honestly as they can catch you easily
Tip 2: Know everything on your resume
Tip 3: Be gentle as you speak

03
Round
Easy
Telephonic
Duration20 minutes
Interview date5 Sep 2020
Problems4
Q1. How many stacks are used to implement a queue.
Problem approach

Just the answer which is 2.

Q2. What is the difference between a reference and a pointer? Explain with an example.
Problem approach

Reference - No memory is allocated and it is just an alias of the same memory location
Pointer - New memory location is created which stores the address of the location it is pointing to.
Ex -
int& a = b (reference)
int* a = &b (pointer)

There is a bulb in a room, you are outside the room and there are 3 switches, what is the minimum number of times you need to open the door to know to which switch the bulb belongs
Problem approach

Answer = 1

You are given a number if the number is positive, then if n is divisible by 3, print “GO” if n is divisible by 5, print “SLEEP” , if n is divisible by both 3 and 5, print “RETIRE”. If the number equals 0, then throw an exception and print that you have entered 0. If the number is negative, then throw an exception and print that you have entered a negative number.
Problem approach

The question explains everything. Just need to use try catch blocks for exception handling

04
Round
Easy
Face to Face
Duration50 minutes
Interview date5 Sep 2020
Problems2
Given a linked list of characters, tell if it is a palindrome linked list or not.

You are given a singly Linked List of integers. Your task is to return true if the given singly linked list is a palindrome otherwise returns false.

For example:
view more
Problem approach

I gave the two pointer approach. Then he said what if we are provided with the length of the list. I said that we will move forward in the list till n/2 nodes and then the same approach as above. Then he said what if we had to do it with a stack. I said we will add elements into the stack till n/2 nodes and then start popping elements while simultaneously traversing the linked list from the (n/...

view more
Try solving now
You are given a student table and a course table with primary keys -> roll number and course_id in each respectively. Since we know that a student can enroll in many courses and a course can be taken by many students, so how will you establish normalization here in many to many relationships.
Problem approach

We will create a third table that will store only two columns which are the Primary Keys of both the tables and they together can uniquely identify records in both the tables.

I thought of it but did not reach the solution at once, it took me 3 – 4 attempts for it but he didn’t tell me anything, and finally, I got to the solution.

Start a Discussion
Similar interview experiences
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by American Express
3746 views
3 comments
0 upvotes
company logo
Fullstack Developer
4 rounds | 8 problems
Interviewed by American Express
375 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 1 problems
Interviewed by American Express
838 views
1 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by American Express
0 views
0 comments
0 upvotes
Companies with similar interview experiencs
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Trilogy Innovations
16791 views
0 comments
0 upvotes
company logo
SDE - Intern
5 rounds | 6 problems
Interviewed by Josh Technology Group
10637 views
1 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
6401 views
4 comments
0 upvotes