Open In App

JPMorgan Chase & Co. Interview Experience (On-Campus)

I applied for code for Good 2024 (was an on-campus offer) then I got shortlisted for the coding test.

In the coding test, I got two questions(as this is on campus offer I got only 2 else for campus this way vary one of my friends got 4 questions)



Coding Round:

First question 



You will be given a point (a,b) and you have to reach (c,d) in one operation you can do (a+b,b) or (a,b+a) 

and constraints were 1<=a<=1000  1<=b<=1000  1<=c<=1000  1<=c<=1000

Similar to this:https://stackoverflow.com/questions/56597588/is-is-possible-to-move-from-a-b-to-c-d

Second question :

next permutations of a string

this is similar to this one on our geek for geeks

https://www.geeksforgeeks.org/lexicographically-next-permutation-in-cpp/amp/ 

And for off-campus to the questions were similar to these the questions are the easy and medium level of Geeks For Geeks. 

And the coding skills that I have learned from Geeks for Geeks really helped me to get through this assignment 

So want to thank you Geeks For Geeks. GFG karlo ho jayega
 

Article Tags :