JP Morgan Interview Questions
- 0of 0 votes
AnswersBoard Game:
- NS March 03, 2016 in United States
1) Write a program that can take a board of N x N filled with alphabets and print/return all the words that can be constructed by connecting alphabets together. You're allowed to connect alphabets in any direction including diagonally, the only restriction is that you cannot cross over the same alphabet twice. So for eg:
A,B,C,D
E,K,L,A
C,A,M,N
D,I,N,G
So example words that can be made are: BEAD, CALM, CAN, DAMN, MAKE.
2) What's the run time for your algorithm? Does your algorithm scale for large sizes of the matrix? What optimizations can you make to improve the run time.| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Data Structures - 0of 0 votes
AnswersGiven the X Y coordinates, width and length of 2 rectangles. Implement a function which returns "True" if the 2 rectangles intersect otherwise returns "False". The first 2 values represent the X Y coordinates, the following 2 represent the width and length.The last 4 values represent the second rectangle. The "8" values should be read from console and the result should be printed to console. Test input "1 1 1 1 -1 -1 3 3"
- bajan_coder February 27, 2016 in United States| Report Duplicate | Flag | PURGE
JP Morgan Applications Developer Problem Solving - 0of 0 votes
AnswersDefine and implement a function that takes two binary numbers represented as strings and returns their sum as another binary number which is again represented as a string. The result should not have any leading zeroes. In case the result is zero, it should be the string "0". Test input "111 1"
- bajan_coder February 27, 2016 in United States| Report Duplicate | Flag | PURGE
JP Morgan Applications Developer Bit Manipulation - 0of 0 votes
AnswersA is [4,3,2,0,1]
- chill_bill January 17, 2016 in United States
B is [E,D,C,A,B]
Constant space and O(n) Sorting such that
A is [0,1,2,3,4,]
B is [A,B,C,D,E]| Report Duplicate | Flag | PURGE
JP Morgan freshers Algorithm - 0of 0 votes
AnswersThere is a service which is run by a thread. Within that service, there are say 100 tasks which need to be executed sequentially(highlighted the work sequentially). How would you design your service, specifically what classes from Java framework would you use for this scenario?
- User1 August 24, 2015 in United States| Report Duplicate | Flag | PURGE
JP Morgan Java Developer Threads - 0of 0 votes
AnswersJava coding
- an25081981 January 04, 2015 in India
Given a file with the following entry
ID EMp_Name Manager_ID
1 "ABC" 2
2 "PRW" Null
3 "DEF" 2
4 "PRE" 3
5 "DKF" 4
Print the Respective Manager hierarchy in the below format
PRW | ABC |
| DEF | PRE | DKF
The Employe Manager table can be extended to Hold N entry| Report Duplicate | Flag | PURGE
JP Morgan Java Developer Coding - 0of 0 votes
AnswersWe can start a Thread using either of two methods start() and run().What is the difference between these two?
- searchingviswa March 15, 2014 in India for 100| Report Duplicate | Flag | PURGE
JP Morgan Java Developer Java - 0of 0 votes
AnswersDo thread join without join function
- antipotato October 16, 2013 in India| Report Duplicate | Flag | PURGE
JP Morgan Senior Software Development Engineer Java - 0of 0 votes
AnswersSpiraly print n*n matrix.
- Prajna October 10, 2013 in India
Eg: [1,2,3,4]
[12,13,14,5]
[11,16,15,6]
[10,9,8,7]
Should print
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Java - -2of 2 votes
Answershow to send message using php script ?
- Surender July 12, 2013 in India| Report Duplicate | Flag | PURGE
JP Morgan Applications Developer PHP - 0of 0 votes
Answerswhat is the difference between multi tasking, multi processing and multi programming operating systems with examples ???
- Surender September 06, 2012 in United States| Report Duplicate | Flag | PURGE
JP Morgan Computer Scientist - 1of 1 vote
AnswersWhat's the difference between a Linked List and an ArrayList and give me an example of when to use which
- phwu February 22, 2012 in United States| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer - 0of 0 votes
AnswersWhat are hashmaps and how do they work?
- phwu February 22, 2012 in United States| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer - 0of 0 votes
AnswersTell me about memory allocation (stack vs. heap)
- phwu February 22, 2012 in United States| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer - 0of 0 votes
AnswersWhat is the difference between Java and C++?
- phwu February 22, 2012 in United States| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer - 0of 0 votes
Answerswrite a c++ function to erase every other elements inside a map!
- Itcecsa July 10, 2011| Report Duplicate | Flag | PURGE
JP Morgan Field Sales C++ - 0of 0 votes
Answerswhat data structure does the std::set use? How would you insert items to a red-black tree?
- Anonymous February 22, 2011| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Data Structures - 0of 0 votes
Answersquestions about hashtable. what affects lookup speed?
- Anonymous February 22, 2011| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Data Structures - 0of 0 votes
AnswersHow does a compilier work?
- Anonymous February 22, 2011| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer C++ - 0of 0 votes
AnswersThere is a table with 3 columns. Test ( Id, Col1, Col2) . Id column is identifier. Col1 and Col2 are varchar type. How will you insert N records in to the table with time complexity less than O(N)???
- Sadineni.Venkat February 28, 2009| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Database - 0of 0 votes
AnswersYou have a class that many libraries depend on. You need to modify the class for one application. Which of the following changes require recompiling all libraries before it is safe to build the application?
- zhizun July 22, 2008
a. add a constructor
b. add a data member
c. change destructor into virtual
d. add an argument with default value to an existing member function| Report Duplicate | Flag | PURGE
JP Morgan Financial Software Developer C - 0of 0 votes
AnswersHow do you or what is your experience when learning a new language or technology? Mostly from school/work or..?
- M January 17, 2007| Report Duplicate | Flag | PURGE
JP Morgan Analyst Behavioral - 0of 0 votes
AnswersAsked me about OS projects.
- vodangkhoa May 16, 2005| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Experience - 0of 0 votes
AnswersWhy do I want to study Computer Science?
- vodangkhoa May 16, 2005| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Behavioral - 0of 0 votes
AnswersAsked what I do on my free time? I said Yoga. He wants me to sell him yoga.
- vodangkhoa May 16, 2005| Report Duplicate | Flag | PURGE
JP Morgan Software Engineer / Developer Behavioral