Open In App

JP Morgan Chase Interview Experience (Python Developer)

Round 1 (Technical Round): I started with the introduction. Few questions asked on the skills that were mentioned in the introduction. 

Round 2 (Technical Round): Again, I started with an introduction and discussion on all previous projects. The interviewer asked me to explain the use case and implementation of the most complex problem that I had solved while working on past projects. I explained some scenarios of such instances along with use cases and implementation. There were some counter questions and discussions. The interviewer was not completely convinced.



Coding Questions: 

1. Given a sorted array and number N, write a program to find the pairs of numbers whose sum is equal to N. 



I explained two approaches. He was convinced. He gave a couple of hints while I was stuck in implementing those approaches.

2. Difference between List and Tuples along with examples.

Various python basics questions on decorators. Question on the immutability of tuples like suppose a tuple x = ([1,2,3], “str”, 5) is given. Can we modify the element of list on index 0 of this tuple.?

I explained Yes along with the whole workaround with the concept of reference memory in python.

He asked me the concept of List slicing and list comprehension along with an example.

3. Write a code that prints the following pattern using list comprehension.

 Pattern = [1, 1, 1, 2, 4, 8, 3, 9, 27, 4, 16, 64]

I wrote the logic but made a terrible mistake. I reversed the order of loops while implementing the nested list comprehension. The interviewer tried to give hint on the order of loops, but I couldn’t catch it.

Correct one is




# num, num^2, num^3 ....repeat for (num+1) then (num+2) ... so on
lst = [ base**power for base in range(1, 5) for power in range(1,4)]
print(lst)

He asked about my overall working experience, the reason for the switch. Also, asked me if I have any questions for him before the wrap-up of this interview. I asked about his journey and roles at JPMC.

Article Tags :