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

SDE - 2

American Express
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, OOPS, System Design, Java, Database
Tip
Tip

Tip 1 : Focus on Core Java and development 
Tip 2 : Practise easy -medium questions

Application process
Where: Referral
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Projects should be well defined use bullet points
Tip 2 : Describe your work ex/ intern exp well

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date24 Dec 2021
Coding problem2

It was a L1 technical round where questions from DS algo were asked, along with my work exp and projects. It was a face to face video round with 2 panel members

1. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
WalmartShareChatAmazon

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

import java.io.*;
import java.util.*;
public class Main
{
public static void DFS(int[][] input, int i, int j, int row, int col){
if(i<0||j<0||i>row-1||j>col-1){
return;
}
if(input[i][j]==1){
input[i][j]=0;
DFS(input,i+1,j,row,col);
DFS(input,i-1,j,row,col);
DFS(input,i,j+1,row,col);
DFS(input,i,j-1,row,col);
}
}

public static int countNumber(int[][] input, int row, int col){
int count =0;
for(int i=0;i {
for(int j=0;j if(input[i][j]==1){
input[i][j]=0;

count++;
System.out.println(i+" "+j);
DFS(input,i+1,j,row,col);
DFS(input,i-1,j,row,col);
DFS(input,i,j-1,row,col);
DFS(input,i,j+1,row,col);
}
}
}
return count;
}
public static void main(String[] args) {
//Scanner sc = new Scanner(System.in);
int row =5;
int col =5;
// row = sc.nextInt();
//col = sc.nextInt();
int[][] input = {
{1, 1, 0, 0, 0},
{1, 1, 0, 0, 1},
{1, 1, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 0, 1, 0, 1}};

System.out.println(countNumber(input,row,col));
}
}

Try solving now

2. System Design Question

How to prevent breaking of singleton pattern using reflections?

Problem approach

Tip 1 : Provide correct answer i you know
Tip 2 : Revise Java concepts

02
Round
Medium
Video Call
Duration30 minutes
Interview date7 Jan 2022
Coding problem1

It was a System design round and the interviewer was very friendly, he gave ample hints and it was a productive interaction.

1. System Design Question

Design LRU cache.

Problem approach

Tip 1 : Practise System Design well
Tip 2 : Ask questions wherein necessary

03
Round
Easy
HR Round
Duration45 minutes
Interview date10 Jan 2022
Coding problem1

It was a standard manager where I was asked many questions related to my work exp and behavioural questions

1. Basic HR Questions

Tell me a difficult situation in your previous job role.
Why are you changing jobs?

Problem approach

Tip 1 : Be honest and authentic
Tip 2 : Watch videos on the behavioural round

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
SDE - 1
4 rounds | 7 problems
Interviewed by American Express
4234 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by American Express
1977 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by American Express
2678 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by American Express
4191 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29892 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
9698 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6766 views
1 comments
0 upvotes