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

Software Developer

American Express
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 8 months
Topics: OOPs concept. Various concepts like static, non-static, virtual function, abstract class, interface, etc. Dynamic programming(imp), Data Structures - Linked List, Graph, stack , queue, tree
Tip
Tip

Tip 1 : Solve Code chef long challenges
Tip 2 : Solve at least problem A, B,C of codeforces competition(help to solve problems in time limit).
Tip 3 : Having at least 1 good project is a plus point.

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

Tip 1 : Not more than 2 pages(1 page is good)
Tip 2 : Must know about each and every point in the resume.
Tip 3 : There should be no grammatical error in the resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date21 Oct 2020
Coding problem2

1. Maximum Sum With Specific Difference

Moderate
20m average time
80% success
0/80
Asked in companies
AmazonAmerican ExpressAcko

You are given an array of integers and a number ‘K’. You can pair two elements in the array 'ARR' if the absolute difference between them is strictly less than ‘K’. Your task is to find the maximum possible sum of disjoint pairs among all the pairs of numbers you can obtain.

The sum of a pair is the sum of the elements in the pair.

For Example:
Input: ARR[] = {3, 5, 10, 15, 17, 12, 9}, K = 4
Output: 62

Then disjoint pairs with the absolute difference less than K are 
(3, 5), (10, 12), (15, 17)  
So maximum sum which we can get is 3 + 5 + 12 + 10 + 15 + 17 = 62
Note:
Note that an alternate way to form disjoint pairs is, (3, 5), (9, 12), (15, 17), but this pairing produces a lesser sum.
Try solving now

2. Ninja And The Tree

Hard
45m average time
55% success
0/120
Asked in companies
MicrosoftUberSalesforce

Ninja is learning tree data structure these days. While learning, she came across learn about the Binary Search tree. She found BST quite interesting. She decided to make her own Binary Search Tree. Being a newbie, she made a mistake and swap two nodes of the Binary Search Tree.

Your responsibility being an expert and a good friend is to correct the Binary Search Tree made by Ninja and recover the correct Binary Search Tree.

A binary search tree (BST) is a binary tree data structure with the following properties.

• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
Example

This is the binary search tree made by Ninja. But here, the left node of 8 is greater, and the right node is smaller.
If we swap the right and the left node of 8 Ninja’s Binary Search Tree will become correct.

This is the correct binary Search Tree.
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

What is the output of print(type("Python"))?

Choose another skill to practice
Similar interview experiences
company logo
Intern
3 rounds | 3 problems
Interviewed by American Express
912 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 8 problems
Interviewed by American Express
1137 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by American Express
1771 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by American Express
1435 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
3753 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2644 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 8 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes