Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by JPMorgan Chase & Co. Team. If you also belong to the team, you can get access from here

JPMorgan Chase & Co. Verified Tick

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

JPMorgan Chase & Co. SDE-2 Interview Questions and Answers

Updated 16 Aug 2024

6 Interview questions

A SDE-2 was asked 11mo ago
Q. Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, with a fixed number of slots for each size.
Ans. 

Design a parking system with different types of parking spots

  • Create classes for different types of parking spots (e.g. compact, regular, handicap)

  • Implement methods for checking availability, reserving, and releasing spots

  • Consider implementing a parking lot class to manage all parking spots

A SDE-2 was asked 11mo ago
Q. Given a string s, find the number of substrings without repeating characters.
Ans. 

Count substrings with unique characters in a given string

  • Use a sliding window approach to keep track of unique characters in a substring

  • Use a set to store characters in the current window and update the window accordingly

  • Increment the count of valid substrings whenever a new character is added to the set

SDE-2 Interview Questions Asked at Other Companies

asked in Walmart
Q1. Maximum Frequency Number Problem Statement Given an array of inte ... read more
Q2. Reverse String Operations Problem Statement You are provided with ... read more
asked in KhataBook
Q3. Alien Dictionary Problem Statement Ninja is mastering an unusual ... read more
asked in Atlassian
Q4. K Most Frequent Words Problem Statement Given an array of N non-e ... read more
asked in DP World
Q5. Count Ways To Reach The N-th Stair Problem Statement You are give ... read more
A SDE-2 was asked 11mo ago
Q. Debugging a Java Code
Ans. 

Debugging a Java code involves identifying and fixing errors in the code to ensure it runs correctly.

  • Start by understanding the error message or symptoms of the issue.

  • Use debugging tools like breakpoints, watches, and logging to track the flow of the code.

  • Review the code logic and check for common mistakes like typos, incorrect variable assignments, or logic errors.

  • Test different scenarios to reproduce the issue a...

🔥 Asked by recruiter 2 times
A SDE-2 was asked
Q. 

Pattern Matching Problem Statement

Given a pattern as a string and a set of words, determine if the pattern and the words list align in the same sequence.

Input:
T (number of test cases)
For each test cas...
Ans. 

The problem involves determining if a given pattern aligns with a list of words in the same sequence.

  • Iterate through the pattern and words list simultaneously to check for matching sequences.

  • Use a hashmap to store the mapping between characters in the pattern and words in the list.

  • Compare the mappings to determine if the pattern and words align in the same sequence.

What people are saying about JPMorgan Chase & Co.

View All
an associate consultant
2w (edited)
Data Engineering - Interview process
I had 2 rounds of interviews with 2 VPs approx. 2 months back, after which I didn't hear from them. Now HR has again scheduled a 3rd round of interview with the same VP from 2nd interview. Any idea what could I expect in the latest interview ?
Got a question about JPMorgan Chase & Co.?
Ask anonymously on communities.
🔥 Asked by recruiter 2 times
A SDE-2 was asked
Q. 

Longest Increasing Path in Matrix Problem Statement

Given a 2-D matrix mat with 'N' rows and 'M' columns, where each element at position (i, j) is mat[i][j], determine the length of the longest increasing ...

Ans. 

The problem involves finding the length of the longest increasing path in a 2-D matrix starting from a given cell.

  • Use dynamic programming to keep track of the longest increasing path starting from each cell.

  • Implement a recursive function to explore all possible paths from a cell.

  • Update the length of the longest path for each cell based on the maximum path length from its neighbors.

  • Consider edge cases such as bound...

A SDE-2 was asked
Q. 

Arithmetic Progression Queries Problem Statement

Given an integer array ARR of size N, perform the following operations:

- update(l, r, val): Add (val + i) to arr[l + i] for all 0 ≤ i ≤ r - l.

- rangeSum...

Ans. 

Implement update and rangeSum operations on an integer array based on given queries.

  • Implement update(l, r, val) by adding (val + i) to arr[l + i] for all i in range (0, r - l).

  • Implement rangeSum(l, r) to return the sum of elements in the array from index l to r.

  • Handle queries using 1-based indexing.

  • Ensure constraints are met for input values.

  • Output the sum of arr[l..r] for each rangeSum operation.

JPMorgan Chase & Co. SDE-2 Interview Experiences

2 interviews found

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 16 Aug 2024

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed in Jul 2024. There were 3 interview rounds.

Round 1 - Coding Test 

DSA, Leetcode medium -2 problems

Round 2 - One-on-one 

(2 Questions)

  • Q1. Easy Leetcode Problem: Count of substrings with no repeating characters
  • Ans. 

    Count substrings with unique characters in a given string

    • Use a sliding window approach to keep track of unique characters in a substring

    • Use a set to store characters in the current window and update the window accordingly

    • Increment the count of valid substrings whenever a new character is added to the set

  • Answered by AI
  • Q2. Debugging a Java Code
  • Ans. 

    Debugging a Java code involves identifying and fixing errors in the code to ensure it runs correctly.

    • Start by understanding the error message or symptoms of the issue.

    • Use debugging tools like breakpoints, watches, and logging to track the flow of the code.

    • Review the code logic and check for common mistakes like typos, incorrect variable assignments, or logic errors.

    • Test different scenarios to reproduce the issue and na...

  • Answered by AI
Round 3 - One-on-one 

(1 Question)

  • Q1. Design Parking System
  • Ans. 

    Design a parking system with different types of parking spots

    • Create classes for different types of parking spots (e.g. compact, regular, handicap)

    • Implement methods for checking availability, reserving, and releasing spots

    • Consider implementing a parking lot class to manage all parking spots

  • Answered by AI

Skills evaluated in this interview

Are these interview questions helpful?

SDE-2 Interview Questions & Answers

user image Anonymous

posted on 14 Sep 2021

I appeared for an interview in Mar 2021.

Round 1 - Video Call 

(1 Question)

Round duration - 80 minutes
Round difficulty - Medium

  • Q1. 

    Longest Increasing Path in Matrix Problem Statement

    Given a 2-D matrix mat with 'N' rows and 'M' columns, where each element at position (i, j) is mat[i][j], determine the length of the longest increasing...

  • Ans. 

    The problem involves finding the length of the longest increasing path in a 2-D matrix starting from a given cell.

    • Use dynamic programming to keep track of the longest increasing path starting from each cell.

    • Implement a recursive function to explore all possible paths from a cell.

    • Update the length of the longest path for each cell based on the maximum path length from its neighbors.

    • Consider edge cases such as boundary c...

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 50 minutes
Round difficulty - Hard

It was purely Data Structures and Maths.

  • Q1. 

    Arithmetic Progression Queries Problem Statement

    Given an integer array ARR of size N, perform the following operations:

    - update(l, r, val): Add (val + i) to arr[l + i] for all 0 ≤ i ≤ r - l.

    - rangeSu...

  • Ans. 

    Implement update and rangeSum operations on an integer array based on given queries.

    • Implement update(l, r, val) by adding (val + i) to arr[l + i] for all i in range (0, r - l).

    • Implement rangeSum(l, r) to return the sum of elements in the array from index l to r.

    • Handle queries using 1-based indexing.

    • Ensure constraints are met for input values.

    • Output the sum of arr[l..r] for each rangeSum operation.

  • Answered by AI
Round 3 - Video Call 

Round duration - 70 Minutes
Round difficulty - Easy

Round 4 - Coding Test 

(1 Question)

Round duration - 30 Minutes
Round difficulty - Easy

  • Q1. 

    Pattern Matching Problem Statement

    Given a pattern as a string and a set of words, determine if the pattern and the words list align in the same sequence.

    Input:
    T (number of test cases)
    For each test ca...

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Maharaja Surajmal Institute Of Technology. I applied for the job as SDE - 2 in MumbaiEligibility criteriaNoJPMorgan Chase & Co. interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, OOPS, Probability, System Design, Project (thoroughly).Time required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Tip 1 : I solved Interviewbit mostly
Tip 2 : Revised my Coding Ninjas Course 
Tip 3 : Created One Project (Helped me a lot during Design Interview )

Application resume tips for other job seekers

Tip 1 : I have done some internship as a Software Developer.
Tip 2 : Have some good project on my resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

I appeared for an interview in May 2022.

Round 1 - Face to Face 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

Round started with an intro about the project. In my project i have mentioned that i had use Cassandra. The interviewer asked why use Cassandra , why not other No Sql database.
After that the interviewer started asking about the java concepts. How exception propagate takes in case of polymorphism.
There a question about multilevel inheritance. There were three classes parent, child , grandchild in a multlevel inheritance.
All three classes have a function with same name.
Question was about if we call a method something like this 
Parent p = new Grandchild();
p.method1();
which class method would be called

  • Q1. 

    First Missing Positive Problem Statement

    You are provided with an integer array ARR of length 'N'. Your objective is to determine the first missing positive integer using linear time and constant space. T...

  • Ans. 

    Find the smallest missing positive integer in an array efficiently.

    • Iterate through the array and mark positive integers as visited using index as value

    • Iterate through the marked array to find the first missing positive integer

    • Handle negative numbers by ignoring them during marking process

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

Interviewer started with some questions about Database locks .
I had to prepare a low level design of the library management system.
Then there were follow up questions regarding how many database table you will use, normalizing those databse table, writing the service logic for one of the functionality

  • Q1. Design a Library Management System.
  • Ans. 

    A Library Management System to manage books, users, and transactions.

    • Create a database to store information about books, users, and transactions.

    • Implement functions to add, update, and delete books and users.

    • Allow users to check out and return books, with due date tracking.

    • Generate reports on book availability, user activity, and overdue books.

  • Answered by AI
Round 3 - HR 

(1 Question)

Round duration - 30 Minutes
Round difficulty - Easy

It was managerial round. They asked few questions about the project and why you use this particular technology.

  • Q1. Can you explain your project and the reasons for using this particular technology?

Interview Preparation Tips

Eligibility criteriaNo criteriaMorgan Stanley interview preparation:Topics to prepare for the interview - Data Structures,Java 8 new features,Low Level Design,Database indexes and locksKnowledge of ProjectTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : Be very clear with java basics, polymorphism in multilevel inheritance. Future, callable, completable furture in concurrency, stream api.Concurrent hash map, Database locks , how Database indexes are fast.
Tip 2 : In 2 round they are going to make you do a low level design for an application. In my case it was library management system, Be ready for the follow up questions like how many tables are you going to use this low level design, normalizing the tables you have used. Write logic for one of the service in the low level design.
Tip 3 : For the managerial round, you should know why you used this partcular tech stack.

Application resume tips for other job seekers

Tip 1 : Only mention those things in projects which you have really done in your organization. Morgan stanley is particular rigorous about the projects. 
Tip 2 : Be sure to highlight what business values your project brought to the organization

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview in Jan 2022.

Round 1 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

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

  • Q1. 

    Number of Islands Problem Statement

    You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in t...

  • Ans. 

    Count the number of islands in a 2D matrix of 1s and 0s.

    • Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the matrix and identify connected groups of 1s.

    • Maintain a visited array to keep track of visited cells to avoid revisiting them.

    • Increment the island count each time a new island is encountered.

    • Consider all eight possible directions for connectivity between cells.

    • Handle edge cases like out of bo...

  • Answered by AI
  • Q2. How can you prevent the breaking of the singleton pattern using reflections?
  • Ans. 

    Prevent breaking singleton pattern using reflections by throwing an exception in the private constructor.

    • Throw an exception in the private constructor if an instance already exists.

    • Use a flag to track if an instance has been created and throw an exception if an attempt is made to create another instance.

    • Use enums to create a singleton to prevent reflection attacks.

  • Answered by AI
Round 2 - Video Call 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

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

  • Q1. Design an LRU (Least Recently Used) cache.
  • Ans. 

    Design an LRU cache to store and retrieve data based on least recently used policy.

    • Use a doubly linked list to keep track of the order of usage of the cache entries.

    • Maintain a hash map to quickly access the cache entries based on their keys.

    • When a new entry is accessed, move it to the front of the linked list to mark it as the most recently used.

    • If the cache is full, remove the least recently used entry from the end of...

  • Answered by AI
Round 3 - HR 

Round duration - 45 minutes
Round difficulty - Easy

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

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from IIIT,BBSR. I applied for the job as SDE - 2 in GurgaonEligibility criteriaNoAmerican Express interview preparation:Topics to prepare for the interview - Data Structures, OOPS, System Design, Java, DatabaseTime required to prepare for the interview - 2 monthsInterview preparation tips for other job seekers

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

Application resume tips for other job seekers

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

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Face to Face 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

It was in the day time. I was asked the programming language of my choice. It was mostly focused on programming fundamentals. I was asked 2 questions based on Data Structures and Algorithms.

  • Q1. How can you detect a loop in a linked list?
Round 2 - Face to Face 

(1 Question)

Round duration - 30 minutes
Round difficulty - Easy

This round was mostly focused on my resume and projects.

  • Q1. Tell me about your projects.
  • Ans. 

    I worked on several projects, including a web app for task management and a machine learning model for sentiment analysis.

    • Developed a task management web app using React and Node.js, allowing users to create, update, and delete tasks.

    • Implemented a machine learning model using Python and scikit-learn to analyze customer reviews and predict sentiment.

    • Created a personal portfolio website to showcase my projects and skills...

  • Answered by AI
Round 3 - Face to Face 

Round duration - 30 minutes
Round difficulty - Easy

It was in the evening. I went to their office in Gurgaon. It was taken by one of the technology director who had a lot of experience. 
 

Interview Preparation Tips

Professional and academic backgroundI completed Information Technology from Bharati Vidyapeeth's College of Engineering. I applied for the job as SDE - 1 in GurgaonAmerican Express interview preparation:Topics to prepare for the interview - Data structures and algorithms, Object-Oriented Programming System concepts, Database Management System, Operating System, Networking.Time required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Do practice a lot of data structures questions as mostly questions in interviews are based on them. Also, do prepare for projects mentioned in your resume and skills which you have mentioned. Coding ninjas has a big hand in making my interview clear as I have taken a course from the coding Ninjas which helped me a lot to make my concepts clear.

Application resume tips for other job seekers

Keep it short and crisp. Go through it properly before the interview. Make sure that you haven't put anything in it that can cause you problems during the interview.

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Company Website and was interviewed in Oct 2019. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Hypothetical Questions - What if the company decides to demote all senior associate s to associate? What will be your reaction??

Interview Preparation Tips

Interview preparation tips for other job seekers - I went for Enterprise Testing Senior Associate. The person who interviewed me was very well known to me. He worked with me for more than a year at the same level. Asked illogical questions. All hypothetical questions he asked in which I was the one who was getting demoted or denied bonus or increment.
He should not have taken my interview as it was conflict of Interest. 99% of questions was asked by this guy and the other lady in VC only asked 1 general question.
I reported conflict of interest issue to the hiring HR but no action was taken not any reply toy email came.

I applied via Recruitment Consultant and was interviewed before Jun 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Project Overview BA/PO related questions Domain and Behavioral questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Freshen up the domain learnings
Be confident of the behaviour questions as per the past and practical experience

I appeared for an interview in Jan 2017.

Interview Questionnaire 

3 Questions

  • Q1. 1. Why do you want to join Citi?
  • Q2. 2. Why do you want a career in banking? And not consulting or finance?
  • Ans. 

    I am interested in a career in banking because of the opportunities for growth, the dynamic nature of the industry, and my passion for financial analysis.

    • Opportunities for growth: Banking offers a wide range of career paths and opportunities for advancement. I am excited about the potential to develop my skills and progress within the industry.

    • Dynamic nature of the industry: Banking is constantly evolving, with new tec...

  • Answered by AI
  • Q3. 3. How has the Indian Economy performed in the past 2 years?
  • Ans. 

    The Indian economy has experienced mixed performance in the past 2 years.

    • GDP growth rate has fluctuated

    • Demonetization and GST implementation impacted the economy

    • Unemployment rate has been a concern

    • Inflation has remained relatively low

    • Foreign direct investment has increased

    • Agricultural sector faced challenges due to weather conditions

  • Answered by AI

Interview Preparation Tips

Round: Resume Shortlist
Experience: My resume had gotten shortlisted for the profile of an Analyst. This was the first stage.

Round: Group Discussion
Duration: 20 minutes

College Name: Lady Shri Ram College

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.

JPMorgan Chase & Co. Interview FAQs

How many rounds are there in JPMorgan Chase & Co. SDE-2 interview?
JPMorgan Chase & Co. interview process usually has 3 rounds. The most common rounds in the JPMorgan Chase & Co. interview process are One-on-one Round and Coding Test.
What are the top questions asked in JPMorgan Chase & Co. SDE-2 interview?

Some of the top questions asked at the JPMorgan Chase & Co. SDE-2 interview -

  1. Easy Leetcode Problem: Count of substrings with no repeating charact...read more
  2. Design Parking Sys...read more
  3. Debugging a Java C...read more

Tell us how to improve this page.

Overall Interview Experience Rating

5/5

based on 1 interview experience

Difficulty level

Moderate 100%

Duration

Less than 2 weeks 100%
View more

Interview Questions from Similar Companies

Wells Fargo Interview Questions
3.8
 • 622 Interviews
Bajaj Finserv Interview Questions
4.0
 • 604 Interviews
Citicorp Interview Questions
3.7
 • 591 Interviews
HSBC Group Interview Questions
3.9
 • 512 Interviews
American Express Interview Questions
4.1
 • 388 Interviews
BNY Interview Questions
3.8
 • 367 Interviews
UBS Interview Questions
3.9
 • 352 Interviews
Morgan Stanley Interview Questions
3.6
 • 309 Interviews
Morningstar Interview Questions
3.9
 • 251 Interviews
View all
JPMorgan Chase & Co. SDE-2 Salary
based on 11 salaries
₹20 L/yr - ₹32 L/yr
23% less than the average SDE-2 Salary in India
View more details
Associate
11.3k salaries
unlock blur

₹18.7 L/yr - ₹33.2 L/yr

Team Lead
5.8k salaries
unlock blur

₹8.4 L/yr - ₹15 L/yr

Vice President
4.4k salaries
unlock blur

₹39 L/yr - ₹65 L/yr

Senior Associate
2.9k salaries
unlock blur

₹24.2 L/yr - ₹45 L/yr

Analyst
2.8k salaries
unlock blur

₹11.5 L/yr - ₹20 L/yr

Explore more salaries
Compare JPMorgan Chase & Co. with

Morgan Stanley

3.6
Compare

Goldman Sachs

3.5
Compare

TCS

3.6
Compare

Bank of America

4.2
Compare
write
Share an Interview