Add office photos
Engaged Employer

MakeMyTrip

3.7
based on 819 Reviews
Filter interviews by

JPMorgan Chase & Co. Interview Questions and Answers

Updated 24 Jul 2024
Popular Designations
Q1. Combination Sum

You are given an array/list ARR of N distinct positive integers. You are also given a non-negative integer B.

Your task is to find all unique combinations in the array whose sum is equal to B. A ...read more

View 2 more answers
Q2. Next Greater Number

You are given a string S which represents a number. You have to find the smallest number strictly greater than the given number which contains the same set of digits as of the original number...read more

View 2 more answers

Q3. Program to find all possible combinations of elements from two sets of arrays such that the sum of elements is equal to one of the elements in the array itself.

Ans.

Program to find all possible combinations of elements from two sets of arrays such that the sum of elements is equal to one of the elements in the array itself.

  • Create two arrays of integers

  • Loop through both arrays and find all possible combinations

  • Check if the sum of elements is equal to any element in the array

  • Return all combinations that meet the criteria

Add your answer

Q4. Program to find the next bigger number for the given number by just interchanging it's digits.ex- for 533224, answer is 533242

Ans.

Program to find the next bigger number for the given number by interchanging its digits.

  • Convert the number to a string to access individual digits

  • Start from the rightmost digit and find the first digit that is smaller than the digit to its right

  • Swap this digit with the smallest digit to its right that is greater than it

  • Sort the digits to the right of the swapped digit in ascending order

  • Convert the string back to a number and return

Add your answer
Discover JPMorgan Chase & Co. interview dos and don'ts from real experiences

Q5. One java string question merge two strings diagonally.

Ans.

Merge two strings diagonally in a Java array of strings.

  • Iterate through each row and column to merge characters diagonally

  • Keep track of the diagonal position to insert characters from both strings

  • Handle cases where strings have different lengths

  • Example: String 1: 'hello', String 2: 'world', Merged: 'hweolrllod'

  • Example: String 1: 'abc', String 2: '123', Merged: 'a1b2c3'

Add your answer

Q6. If you get 500 error how to debug.

Ans.

To debug a 500 error, check server logs, review code changes, test API endpoints, and use debugging tools.

  • Check server logs for error details

  • Review recent code changes that may have caused the error

  • Test API endpoints using tools like Postman

  • Use debugging tools like Chrome DevTools or Firebug

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior QA Engineer Interview Questions from Similar Companies

4.7
 • 10 Interview Questions
3.8
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter