Upload Button Icon Add office photos

American Express

Compare button icon Compare button icon Compare

Proud winner of ABECA 2025 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

American Express Software Developer Intern Interview Questions and Answers

Updated 7 Dec 2021

12 Interview questions

A Software Developer Intern was asked
Q. 

Left View of a Binary Tree Problem Statement

Given a binary tree, your task is to print the left view of the tree.

Example:

Input:
The input will be in level order form, with node values separated by a ...
Ans. 

Print the left view of a binary tree given in level order form.

  • Traverse the tree level by level and print the first node encountered at each level

  • Use a queue to perform level order traversal

  • Keep track of the current level and the maximum level seen so far

A Software Developer Intern was asked
Q. 

Minimum Number of Swaps to Sort an Array

Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.

Input:

T (number of test cases)
For each test case:
N (size...
Ans. 

The minimum number of swaps required to sort a given array of distinct elements in ascending order.

  • Use a graph-based approach to find cycles in the array

  • Count the number of swaps needed to fix each cycle

  • Sum up the swaps needed for all cycles to get the total minimum swaps

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more
🔥 Asked by recruiter 2 times
A Software Developer Intern was asked
Q. 

Maximum Non-Adjacent Subsequence Sum

Given an array of integers, determine the maximum sum of a subsequence without choosing adjacent elements in the original array.

Input:

The first line consists of an ...
Ans. 

Find the maximum sum of a subsequence without choosing adjacent elements in an array.

  • Use dynamic programming to keep track of the maximum sum at each index, considering whether to include or exclude the current element.

  • At each index, the maximum sum is either the sum of the current element and the sum two positions back, or the sum at the previous index.

  • Iterate through the array and update the maximum sum accordin...

A Software Developer Intern was asked
Q. 

Travelling Salesman Problem

Given a list of cities numbered from 0 to N-1 and a matrix DISTANCE consisting of 'N' rows and 'N' columns, representing the distances between each pair of cities, find the shor...

Ans. 

The Traveling Salesman Problem seeks the shortest route visiting each city once and returning to the start.

  • Brute Force Approach: Check all permutations of cities to find the shortest path, but this is inefficient for larger N.

  • Dynamic Programming: Use bitmasking to represent visited cities and memoization to store results, reducing time complexity.

  • Example: For cities 0, 1, 2 with distances 0-10-15, the optimal rout...

A Software Developer Intern was asked
Q. 

Interval List Intersection Problem

You are provided with two sorted lists of closed intervals, INTERVAL1 and INTERVAL2. A closed interval [x, y] (x < y) signifies the set of real numbers z such that x &...

Ans. 

Find the intersections of two sorted lists of closed intervals.

  • Iterate through both interval lists to find intersections

  • Compare the intervals and find the common range

  • Handle cases where there is no intersection between intervals

A Software Developer Intern was asked
Q. 

Stack using Two Queues Problem Statement

Develop a Stack Data Structure to store integer values using two Queues internally.

Your stack implementation should provide these public functions:

Explanation:

...
Ans. 

Implement a stack using two queues to store integer values with specified functions.

  • Use two queues to simulate stack operations efficiently.

  • Maintain one queue for storing elements and another for temporary storage during push operation.

  • Ensure proper handling of edge cases like empty stack or invalid operations.

  • Example: Push operation involves transferring elements from one queue to another before adding the new el...

A Software Developer Intern was asked
Q. 

Detect and Remove Loop in Linked List

For a given singly linked list, identify if a loop exists and remove it, adjusting the linked list in place. Return the modified linked list.

Expected Complexity:

Ai...

Ans. 

Detect and remove loop in a singly linked list in place with O(n) time complexity and O(1) space complexity.

  • Use Floyd's Cycle Detection Algorithm to identify the loop in the linked list.

  • Once the loop is detected, use two pointers to find the start of the loop.

  • Adjust the pointers to remove the loop and return the modified linked list.

Are these interview questions helpful?
A Software Developer Intern was asked
Q. 

Sliding Maximum Problem Statement

Given an array of integers ARR of length 'N' and a positive integer 'K', find the maximum elements for each contiguous subarray of size K.

Example:

Input:
ARR = [3, 4, ...
Ans. 

Implement a function to find maximum elements for each contiguous subarray of size K in an array of integers.

  • Iterate through the array and maintain a deque to store the indices of elements in decreasing order.

  • Pop elements from the deque that are out of the current window and add the maximum element to the result array.

  • Return the result array containing maximum elements for each subarray of size K.

A Software Developer Intern was asked
Q. 

Longest Substring with At Most K Distinct Characters

Given a string S of length N and an integer K, find the length of the longest substring that contains at most K distinct characters.

Input:

The first ...
Ans. 

Find the length of the longest substring with at most K distinct characters in a given string.

  • Use a sliding window approach to keep track of the characters and their counts in the substring.

  • Maintain a hashmap to store the characters and their frequencies within the window.

  • Update the window size and characters count as you iterate through the string.

  • Keep track of the longest substring length with at most K distinct...

A Software Developer Intern was asked
Q. 

Palindrome Linked List Detection

Given a singly linked list of integers, determine if it is a palindrome. A linked list is considered a palindrome if it reads the same forward and backward.

Example:

Inpu...
Ans. 

Check if a singly linked list is a palindrome by comparing elements from both ends.

  • Traverse the linked list to find the middle point

  • Reverse the second half of the linked list

  • Compare the first half with the reversed second half to check for palindrome

  • Example: Input: 1 2 3 2 1 -1, Output: true

American Express Software Developer Intern Interview Experiences

4 interviews found

I appeared for an interview before Dec 2020.

Round 1 - Coding Test 

(3 Questions)

Round duration - 90 minutes
Round difficulty - Medium

It consist three question - first que is of related to tree and i gave difficulty level of this question as hard. second que is of based on logical and reasoning , it is medium level question and third que can be done by map and it is also medium level que.
In codility platform we are not able to see hidden test cases whether it is satisfied or not . we just have to submit after passing sample testcases.

  • Q1. 

    Minimum Number of Swaps to Sort an Array

    Find the minimum number of swaps required to sort a given array of distinct elements in ascending order.

    Input:

    T (number of test cases)
    For each test case:
    N (siz...
  • Ans. 

    The minimum number of swaps required to sort a given array of distinct elements in ascending order.

    • Use a graph-based approach to find cycles in the array

    • Count the number of swaps needed to fix each cycle

    • Sum up the swaps needed for all cycles to get the total minimum swaps

  • Answered by AI
  • Q2. 

    Maximum Non-Adjacent Subsequence Sum

    Given an array of integers, determine the maximum sum of a subsequence without choosing adjacent elements in the original array.

    Input:

    The first line consists of an...
  • Ans. 

    Find the maximum sum of a subsequence without choosing adjacent elements in an array.

    • Use dynamic programming to keep track of the maximum sum at each index, considering whether to include or exclude the current element.

    • At each index, the maximum sum is either the sum of the current element and the sum two positions back, or the sum at the previous index.

    • Iterate through the array and update the maximum sum accordingly.

    • E...

  • Answered by AI
  • Q3. 

    Left View of a Binary Tree Problem Statement

    Given a binary tree, your task is to print the left view of the tree.

    Example:

    Input:
    The input will be in level order form, with node values separated by a...
  • Ans. 

    Print the left view of a binary tree given in level order form.

    • Traverse the tree level by level and print the first node encountered at each level

    • Use a queue to perform level order traversal

    • Keep track of the current level and the maximum level seen so far

  • Answered by AI
Round 2 - Video Call 

Round duration - 30 minutes
Round difficulty - Medium

basically this round is just same as HR round . they asked me behavioural questions and about my projects , hackathon. the timing is mid noon and interviewer is supportive , it makes first comfortable then start questioning . for this round i suggest be honest , don't just express your qualities but trying to show them by your skills and work.

Interview Preparation Tips

Eligibility criteria7 cgpaAmerican Express interview preparation:Topics to prepare for the interview - Data structures and algorithms with lots of question practice topic wise, core subjects like that oops,dbms,os.Time required to prepare for the interview - 7 MonthsInterview preparation tips for other job seekers

Tip 1 : all we know focus on ds and algorithms is must but how should we prepare ? so , the answer is read concepts and then practice question topic wise or company wise in gfg.
Tip 2 : do focus on cp it is must to clear very first coding round. Also many of them do cp but in their comfort zone that means those question from which they have good hold but i say this would not give any benefit . so , solve que out of comfort zone , which takes time but is is most efficient way.
Tip 3 : Also balance between cp and projects is must.

Application resume tips for other job seekers

Tip 1 : it is crisp . for ex - you have a good knowledge on java, cpp , c , python . and lets say you have basic knowledge of html,css then don't mention these subjects. 
Tip 2 : Achievements should be in reverse chronological order like first focus on college achievements , then on school.
Tip 3 : i saw like many of them made just one resume and use for all , but i suggest each time made resume according to post you apply for and in which company. which increases your chances in shortlisted candidates.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 minutes
Round difficulty - Easy

The coding round was at 11 am in the morning. The questions were of medium level. The questions were purely based on Data Structures and Algorithms.

  • Q1. 

    Sliding Maximum Problem Statement

    Given an array of integers ARR of length 'N' and a positive integer 'K', find the maximum elements for each contiguous subarray of size K.

    Example:

    Input:
    ARR = [3, 4,...
  • Ans. 

    Implement a function to find maximum elements for each contiguous subarray of size K in an array of integers.

    • Iterate through the array and maintain a deque to store the indices of elements in decreasing order.

    • Pop elements from the deque that are out of the current window and add the maximum element to the result array.

    • Return the result array containing maximum elements for each subarray of size K.

  • Answered by AI
  • Q2. 

    Longest Substring with At Most K Distinct Characters

    Given a string S of length N and an integer K, find the length of the longest substring that contains at most K distinct characters.

    Input:

    The first...
  • Ans. 

    Find the length of the longest substring with at most K distinct characters in a given string.

    • Use a sliding window approach to keep track of the characters and their counts in the substring.

    • Maintain a hashmap to store the characters and their frequencies within the window.

    • Update the window size and characters count as you iterate through the string.

    • Keep track of the longest substring length with at most K distinct char...

  • Answered by AI
Round 2 - Face to Face 

Round duration - 45 minutes
Round difficulty - Easy

I was selected for the interview. The interview was conducted early in the morning at 10 am. The interviewer was very friendly and calm.

Round 3 - Telephonic Call 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

This round was a mix of technical, puzzles and HR. The interview was fairly easy, The interviewer asked for my introduction and continued with the interview then.

  • Q1. 

    Stack using Two Queues Problem Statement

    Develop a Stack Data Structure to store integer values using two Queues internally.

    Your stack implementation should provide these public functions:

    Explanation:

    ...
  • Ans. 

    Implement a stack using two queues to store integer values with specified functions.

    • Use two queues to simulate stack operations efficiently.

    • Maintain one queue for storing elements and another for temporary storage during push operation.

    • Ensure proper handling of edge cases like empty stack or invalid operations.

    • Example: Push operation involves transferring elements from one queue to another before adding the new element...

  • Answered by AI
Round 4 - Telephonic Call 

(2 Questions)

Round duration - 45 minutes
Round difficulty - Easy

This was the last round for getting selected as an intern. However, this was a pure technical round. Only coding questions were asked. Also, at the end he asked me the question, Why American express?

  • Q1. 

    Detect and Remove Loop in Linked List

    For a given singly linked list, identify if a loop exists and remove it, adjusting the linked list in place. Return the modified linked list.

    Expected Complexity:

    A...

  • Ans. 

    Detect and remove loop in a singly linked list in place with O(n) time complexity and O(1) space complexity.

    • Use Floyd's Cycle Detection Algorithm to identify the loop in the linked list.

    • Once the loop is detected, use two pointers to find the start of the loop.

    • Adjust the pointers to remove the loop and return the modified linked list.

  • Answered by AI
  • Q2. 

    Interval List Intersection Problem

    You are provided with two sorted lists of closed intervals, INTERVAL1 and INTERVAL2. A closed interval [x, y] (x < y) signifies the set of real numbers z such that x ...

  • Ans. 

    Find the intersections of two sorted lists of closed intervals.

    • Iterate through both interval lists to find intersections

    • Compare the intervals and find the common range

    • Handle cases where there is no intersection between intervals

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Netaji Subhas University Of Technology. Eligibility criteriaAbove 7 CGPAAmerican Express interview preparation:Topics to prepare for the interview - C++, Data Structures, Algorithms, Operating Systems, Object Oriented Programming, Database Management System, Computer NetworksTime required to prepare for the interview - 2.5 monthsInterview preparation tips for other job seekers

Tip 1 : Have confidence in Data Structures and Algorithms. Have your concepts very clear and then pick one coding platform( leetcode, InterviewBit, CodeZen, GeeksForGeeks) and try to practice around 7-10 questions everyday with varying difficulty and different topics.Also solving questions is not enough, try to optimize it. Analyze its space and time complexities.
Tip 2 : Study properly about OOPS concepts. Coding Ninja's Data Structures and Algorithms course is great for preparing the OOPS concepts specifically. For OS and DBMS refer to your college notes and GeekForGeeks articles.
Tip 3 : Keep participating in coding contests. It helps you increase your problem solving skills.

Application resume tips for other job seekers

Tip 1 : Add those skills, projects and achievements which are relevant to your role.
Tip 2 : Do not fake any skills, projects or achievements. 
Tip 3 : You do need to have a several number of projects. 1 good project with good knowledge of it will also do fine. The similar rule goes for skills also.
Tip 4 : Try to write achievements which proves your technical skills, leadership quality, communication skills or teamwork.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 120 minutes
Round difficulty - Easy

It consisted of 3 coding questions which were purely based on Data Structures and Algorithms.

Question 1 - 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. 


Question 2 - It was a long passage question on Dynamic Programming but the solution was really easy.

Question 3 - 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. Ex - "aaaabbbb" should return 1, as when we delete 1 a or 1 b , a and b will have different frequencies.


The major point to note in the coding round was that they did not have any time or space limit, so brute force solutions were also accepted. 
The result of my test was declared just as the test ended and I scored a 100%, but they took a long time to release the final shortlist. There was a gap of about a week between the test and interviews.

  • Q1. 

    Longest Switching Subarray Problem Statement

    Determine the length of the longest contiguous subarray in a given array of positive integers, where the subarray qualifies as 'switching'. An array is defined...

  • Ans. 

    Find the length of the longest switching subarray in a given array of positive integers.

    • Iterate through the array and keep track of the longest switching subarray found so far.

    • Check if the numbers at even and odd positions are identical to determine a switching subarray.

    • Return the length of the longest switching subarray.

    • Example: For input [1, 4, 1, 4, 3, 2, 3, 0], the longest switching subarray is [1, 4, 1, 4] with le...

  • Answered by AI
  • Q2. 

    Unique Frequency Problem Statement

    Given a string 'STR' with lowercase letters, determine the minimum number of deletions required to ensure that every letter in the string appears a unique number of time...

  • Ans. 

    The task is to find the minimum number of deletions needed in a string to ensure each character appears a unique number of times.

    • Iterate through the string and count the frequency of each character

    • Track the frequencies in a hashmap

    • Identify the characters with duplicate frequencies and calculate the minimum deletions needed

    • Return the minimum number of deletions for each test case

  • Answered by AI
Round 2 - HR 

Round duration - 40 minutes
Round difficulty - Easy

Amex came for two profiles - Tech Role and Analyst, 19 and 23 people respectively were shortlisted for the interviews. Fortunately, I was shortlisted for both the roles. I was asked basic question of C++ and it was majorly an HR Round

Round 3 - Telephonic Call 

Round duration - 20 minutes
Round difficulty - Easy

It was a fairly simple round conssting of 5 - 6 questions related to coding, puzzles and me.

What are your interests? 
What projects have you done and your field of interest?

Round 4 - Face to Face 

(1 Question)

Round duration - 50 minutes
Round difficulty - Easy

This round was purely technical
No introduction was done, straight to the point

My preference was the Tech Role, so as I was selected in this, I never had to give interviews for the Analyst role. In total 5 people were selected in the Analyst profile and 4 in the Tech profile.

In the end, I was offered a 6 months internship at Amex.

  • Q1. 

    Palindrome Linked List Detection

    Given a singly linked list of integers, determine if it is a palindrome. A linked list is considered a palindrome if it reads the same forward and backward.

    Example:

    Inp...
  • Ans. 

    Check if a singly linked list is a palindrome by comparing elements from both ends.

    • Traverse the linked list to find the middle point

    • Reverse the second half of the linked list

    • Compare the first half with the reversed second half to check for palindrome

    • Example: Input: 1 2 3 2 1 -1, Output: true

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Punjab Engineering College(Deemed To be University). I applied for the job as SDE - Intern in BangaloreEligibility criteria7 CGPAAmerican Express interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, Operating System, DBMS, Dynamic Programming, BacktrackingTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

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 resume tips for other job seekers

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

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Nov 2020.

Round 1 - Technical 

(1 Question)

  • Q1. 

    Travelling Salesman Problem

    Given a list of cities numbered from 0 to N-1 and a matrix DISTANCE consisting of 'N' rows and 'N' columns, representing the distances between each pair of cities, find the sho...

  • Ans. 

    The Traveling Salesman Problem seeks the shortest route visiting each city once and returning to the start.

    • Brute Force Approach: Check all permutations of cities to find the shortest path, but this is inefficient for larger N.

    • Dynamic Programming: Use bitmasking to represent visited cities and memoization to store results, reducing time complexity.

    • Example: For cities 0, 1, 2 with distances 0-10-15, the optimal route is ...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from BIT Mesra. I applied for the job as SDE - Intern in BangaloreEligibility criteriaMust qualify the codability test sent to top performers of Makeathon
American Express interview Rounds:Round 1
Round type - Online Coding Interview
Round duration - 90 Minutes
Round difficulty - Medium
American Express interview preparation:Topics to prepare for the interview - Data Structures, Pointers, OOPS, Trees, Graphs , Algorithms, Dynamic Programming, Operating SystemTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Do competitive programming in 1st and 2nd yr
Tip 2 : Clear the basic of all data structures, algorithms and time, space complexities before trying leetcode.
Tip 3 : Dedicate 2-3 months to Interviewbit.

Application resume tips for other job seekers

Tip 1 : Have atleast 2 projects.
Tip 2 : Competitive Coding ranks gives advantage.

Final outcome of the interviewRejected

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
2w
toobluntforu
·
works at
Cvent
Can speak English, can’t deliver in interviews
I feel like I can't speak fluently during interviews. I do know english well and use it daily to communicate, but the moment I'm in an interview, I just get stuck. since it's not my first language, I struggle to express what I actually feel. I know the answer in my head, but I just can’t deliver it properly at that moment. Please guide me
Got a question about American Express?
Ask anonymously on communities.

Interview questions from similar companies

I appeared for an interview in May 2017.

Interview Questionnaire 

6 Questions

  • Q1. Can string class be extended
  • Ans. 

    Yes, the string class can be extended in most programming languages.

    • Inheritance can be used to extend the functionality of the string class.

    • By creating a new class that inherits from the string class, additional methods and properties can be added.

    • Extending the string class allows for customization and adding specific functionality to strings.

    • Example: In Python, the string class can be extended by creating a new class ...

  • Answered by AI
  • Q2. What are the implecit object in JSP
  • Ans. 

    Implicit objects in JSP are predefined objects that are available for use without any declaration or initialization.

    • Implicit objects in JSP include request, response, session, application, out, config, pageContext, page, exception, and others.

    • These objects provide access to various aspects of the JSP environment and can be used to perform common tasks.

    • For example, the request object allows access to HTTP request parame...

  • Answered by AI
  • Q3. How does hash map works
  • Ans. 

    A hash map is a data structure that uses a hash function to map keys to values.

    • Hash map stores key-value pairs

    • It uses a hash function to compute an index for each key

    • Collisions can occur when two keys hash to the same index

    • Hash maps provide fast access to values based on their keys

  • Answered by AI
  • Q4. Difference between string buffer and string builder
  • Ans. 

    StringBuffer and StringBuilder are both used to manipulate strings, but StringBuffer is thread-safe while StringBuilder is not.

    • StringBuffer is synchronized, making it safe for use in multi-threaded environments.

    • StringBuilder is not synchronized, making it faster but not thread-safe.

    • StringBuffer is preferred when multiple threads are involved, while StringBuilder is preferred for single-threaded scenarios.

    • Both classes p...

  • Answered by AI
  • Q5. What is MVC
  • Ans. 

    MVC is a software architectural pattern that separates an application into three main components: Model, View, and Controller.

    • Model represents the data and business logic of the application.

    • View is responsible for displaying the user interface.

    • Controller handles user input, updates the model, and interacts with the view.

    • MVC promotes separation of concerns and modularity in software development.

    • Example: In a web applica...

  • Answered by AI
  • Q6. What are the annotation used in RESTFULL web services
  • Ans. 

    Annotations used in RESTful web services

    • 1. @Path - Specifies the URI path for the resource

    • 2. @GET - Specifies that the method handles HTTP GET requests

    • 3. @POST - Specifies that the method handles HTTP POST requests

    • 4. @PUT - Specifies that the method handles HTTP PUT requests

    • 5. @DELETE - Specifies that the method handles HTTP DELETE requests

    • 6. @PathParam - Binds the value of a URI template parameter to a method paramete...

  • Answered by AI

Interview Preparation Tips

Skills: Java Application Development

Skills evaluated in this interview

Interview Preparation Tips

Round: Technical Interview
Experience: Technical on paper test questions:(dis was only for 12 among d 26 shortlisted ppl after apti...others directly had interviews)
5 wer selected in this test who wer nw sent for interviews
TECHNICAL INTERVIEW: (pls list the questions asked in all the rounds)
26 shortlisted after apti (14 directly for interviews & 12 had one more technical on paper test...mentioned above)
der wer min 2 technical rounds for each of them...max were 5

- You are given course dependencies
A->B,C
B->D
C->A
D->nothing
The above dependencies mean...if you want to take course A...you should take courses B and C first....To take B,Course D must be taken first....D is an independent course and can be taken without any prior requirements.
Now you are told these dependencies.Come up with an appropriate data structure to represent these dependencies.Then write a code that finds out all the courses that the student can take up...in this case the student can first take course D because its independent.Now that course D has been taken he can next take up B as it depends on B alone...But the courses A and C can never be taken because they depend on each other...So here all the courses that can be taken are B and D.
After i wrote the code....he asked for all possible test cases
-Given an array of length N....It can be filled with nos. only from 1 to N....find which nos are repeated in the array
-Given pointers to two nodes in a binary tree....find their least common ancestor...each node has pointer to only the parent node...not the left and right child..
-In a binary tree(Not necessarily a BST)...suppose the weight of any node is defined as the product of the key value of the node and the level of the node(Root at level 1)...find the node with maximum weight in the binary tree
-A sorted array of size n is right circularly rotated k times and this rotated array is given to you as input...Find out the value of k in log n time .
-There are some processes running at time T....and there are processes running at time T+30.
You have to find out
1)Which processes died at time T+30,which were alive at time T
2)Which are the new processes at time T+30,which were not there at time T
3)Which are the processes that were there at time T and are still running at time T+30
What data structure will you use to represent the process lists and write code to find out the answers to the 3 questions above
-Given a binary search tree...and a target sum...starting at the root...which all paths add up to the target sum?...if there are multiple paths....return the path with least no. of nodes.


College Name: Veermata Jijabai Technological Institute, Mumbai [ VJTI ]

Interview Questionnaire 

1 Question

  • Q1. Asked many Dbsa questions. You need to be thorough about the joins in the databases.

Interview Preparation Tips

Round: Test
Experience: Practice questions on Indiabix.

Round: Technical Interview
Experience: Operating Systems basics, Dbsa basics

General Tips: 1: Be Confident.
2: Keep Smiling.
3: Do not be Panic.
4: Remember they are here to hire you but not reject you.
5: Do not loose hope.
6: Believe at yourself.
7: Start preparing early.
8: Do demo interviews with your friend.
Skill Tips: Make sure you do a course on object oriented programming
Skills: C, Sql, Java
College Name: BITS PILANI
Motivation: Every body joins a comapny for making a software or earning money. But I was always motivated to MAKE MONEY. I have taken this job because they have very extensive work in Share Market and they have lots of MBA from IIM's, Lots of CAs, CS. Thats why i have choosen Edelweiss. I have rejected epic System USA for this profile.
Are these interview questions helpful?

I appeared for an interview before Mar 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 90 minutes
Round difficulty - Medium

There were 33 questions in total. The objective questions were simple.

  • Q1. 

    Sort Big List Dates Problem Statement

    Mary is an enthusiastic party-goer who struggles with remembering event dates. Help Mary by sorting a given list of event dates in an ascending order.

    Example:

    Inpu...
  • Ans. 

    Sort a list of event dates in ascending order based on year, month, and day.

    • Sort the list of dates based on year, then month, and finally day.

    • Use a sorting algorithm to rearrange the dates in ascending order.

    • Ensure the constraints are met for each date in the list.

  • Answered by AI
  • Q2. 

    Pair Sum Problem Statement

    You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.

    Note:
    ...
  • Ans. 

    Given an array and a target sum, find all pairs of elements that add up to the target sum.

    • Iterate through the array and for each element, check if the complement (target sum - current element) exists in a hash set.

    • If the complement exists, add the pair to the result list.

    • Sort the pairs based on the first element and then the second element.

    • Handle edge cases like duplicate elements and pairs with the same values.

    • Example...

  • Answered by AI
  • Q3. 

    Maximum Sum Problem Statement

    Given an integer N, your task is to recursively break it into three integer parts: N / 2, N / 3, and N / 4. You need to compute the maximum sum possible by dividing the numbe...

  • Ans. 

    Given an integer N, recursively break it into three parts and find the maximum sum possible.

    • Recursively divide N into N/2, N/3, and N/4 to find the maximum sum

    • Compare the sum obtained by dividing N with the sum of N itself

    • Return the maximum sum for each test case

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMorgan Stanley interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview before Mar 2021.

Round 1 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

Technical Interview round with questions based on DSA.

  • Q1. 

    Duplicate Integer in Array

    Given an array ARR of size N, containing each number between 1 and N-1 at least once, identify the single integer that appears twice.

    Input:

    The first line contains an integer...
  • Ans. 

    Identify the duplicate integer in an array containing numbers between 1 and N-1.

    • Iterate through the array and keep track of the frequency of each element using a hashmap.

    • Return the element with a frequency greater than 1 as the duplicate integer.

    • Ensure the constraints are met and a duplicate number is guaranteed to be present.

  • Answered by AI
  • Q2. 

    Sum Root to Leaf Numbers

    You are given an arbitrary binary tree consisting of N nodes, each associated with an integer value from 1 to 9. Each root-to-leaf path can be considered a number formed by concat...

  • Ans. 

    Calculate the total sum of all root to leaf paths in a binary tree formed by concatenating node values.

    • Traverse the binary tree from root to leaf nodes, keeping track of the current path sum

    • Add the current node value to the path sum and multiply by 10 for each level

    • When reaching a leaf node, add the final path sum to the total sum

    • Return the total sum modulo (10^9 + 7)

  • Answered by AI
  • Q3. 

    Topological Sort Problem Statement

    You are given a directed acyclic graph (DAG). Your task is to perform topological sorting of the graph and return any valid ordering.

    Explanation:

    A directed acyclic g...

  • Ans. 

    Implement a function to perform topological sorting on a directed acyclic graph (DAG) and return any valid ordering.

    • Create a graph data structure to represent the DAG

    • Use depth-first search (DFS) to perform topological sorting

    • Maintain a visited array to keep track of visited nodes

    • Return the ordering of nodes after DFS traversal

  • Answered by AI
Round 2 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Technical interview round with questions based on DSA.

  • Q1. 

    LCA of Binary Tree Problem Statement

    You are given a binary tree consisting of distinct integers and two nodes, X and Y. Your task is to find and return the Lowest Common Ancestor (LCA) of these two nodes...

  • Ans. 

    Find the Lowest Common Ancestor (LCA) of two nodes in a binary tree.

    • Traverse the binary tree to find the paths from the root to nodes X and Y.

    • Compare the paths to find the last common node, which is the LCA.

    • Handle cases where one node is an ancestor of the other.

    • Consider edge cases like when X or Y is the root node.

    • Implement a recursive or iterative solution to find the LCA efficiently.

  • Answered by AI
  • Q2. 

    Rotated Array Minimum Finder

    You are provided with a sorted array that has undergone 'K' rotations (the exact value of 'K' is unknown). A rotation involves shifting each element of the array to the right,...

  • Ans. 

    Implement a function to find the minimum number in a rotated sorted array efficiently.

    • Use binary search to find the minimum element in the rotated array.

    • Compare the mid element with the start and end elements to determine which half of the array to search next.

    • Continue the binary search until the minimum element is found.

  • Answered by AI
  • Q3. 

    Maximum Binary Tree Construction Problem

    Given an array TREE of 'N' unique integers, construct a maximum binary tree using the following rules:

    1. The root of this tree is the maximum number in TREE.
    2. T...
  • Ans. 

    Construct a maximum binary tree from an array of unique integers following specific rules.

    • Find the maximum number in the array to set as the root of the tree.

    • Recursively construct the left subtree with elements before the maximum number.

    • Recursively construct the right subtree with elements after the maximum number.

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAMorgan Stanley interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewRejected

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Experience: The written test was quite similar to the typical CAT pattern. It contained sections on Reading Comprehension, Data Interpretation and Mathematics.

Round: Technical + HR Interview
Experience: There were 2 interviewers in the first interview, one was a technical guy and the other was from HR. They asked me a few very simple puzzles, a few basic programming questions (swapping the value of two variables etc.), questions related to the development cycle of software products. The HR guy asked stuff like what do you want to achieve in life? Strengths, weaknesses etc.

Round: Case Study Interview
Experience: The third interview was the most important one (and I guess that was the deciding interview). The interviewer started with questions like why finance? Which companies are you sitting for? Then he gave me a case study:

Tell us how to improve this page.

Interview Questions from Similar Companies

Wells Fargo Interview Questions
3.8
 • 620 Interviews
Citicorp Interview Questions
3.7
 • 589 Interviews
HSBC Group Interview Questions
3.9
 • 511 Interviews
BNY Interview Questions
3.8
 • 366 Interviews
UBS Interview Questions
3.9
 • 352 Interviews
Morgan Stanley Interview Questions
3.6
 • 308 Interviews
View all
Business Analyst
824 salaries
unlock blur

₹5.9 L/yr - ₹13.6 L/yr

Assistant Manager
727 salaries
unlock blur

₹20 L/yr - ₹36 L/yr

Senior Analyst
669 salaries
unlock blur

₹12.3 L/yr - ₹21 L/yr

Analyst
567 salaries
unlock blur

₹12.1 L/yr - ₹20.5 L/yr

Manager
511 salaries
unlock blur

₹27 L/yr - ₹47 L/yr

Explore more salaries
Compare American Express with

MasterCard

3.9
Compare

Wells Fargo

3.8
Compare

JPMorgan Chase & Co.

3.9
Compare

HSBC Group

3.9
Compare
write
Share an Interview