JPMorgan Chase & Co.
10+ 11Wizards Interview Questions and Answers
You are given a 2-D matrix ‘mat’, consisting of ’N’ rows and ‘M’ columns. The element at the i-th row and j-th column is ‘mat[i][j]’.
From mat[i][j], you can move to mat[i+1][j] if mat[...read more
Given an integer array(ARR) of size N, the following operations need to be performed:
update(l, r, val) : Add (val + i) to arr[l + i] where, 0 <= i <= r - l. rangeSum(l, r): return...read more
You are given a pattern in the form of a string and a collection of words. Your task is to determine if the pattern string and the collection of words have the same order.
Note :
The strings are...read more
Design Data structure like Queue in which you have to get the middle element in O(1), then update that value and do some modification and add back to the Queue in O(1) and the rearrangement...read more
What is the probability of getting a sum of 22 or more when four dice are thrown?
Fifteen people sit around a circular table. What are odds against two particular people sitting together?
Discussion over-
Checked my Github profile and asked lots of questions on projects.
Microservices, Acid Compliance properties, Messaging Queues, Kubernetes, and Docker
Designing Pizza Delivery S...read more
Probability Questions, Some OOPS Question with the Advance concept in java, and Some SQL queries
The interview questions include Probability, OOPS concepts in Java, and SQL queries for SDE - 2 position.
Probability questions may involve calculating the likelihood of certain events occurring.
OOPS questions may cover topics like inheritance, polymorphism, encapsulation, and abstraction in Java.
Advanced Java concepts could include multithreading, design patterns, and exception handling.
SQL queries may involve selecting, updating, deleting, or joining data in a database.
Prepa...read more
Q8. Easy Leetcode Problem: Count of substrings with no repeating characters
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
Q9. Debugging a Java Code
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 narrow down the root cause.
Consider code reviews or pair pro...read more
Q10. Design Parking System
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
More about working at JPMorgan Chase & Co.
Top SDE-2 Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month