Morgan Stanley Interview Questions
- 0of 0 votes
AnswersTime complexity of Hash Map storage and retrieval in Java.
- Saurabh January 28, 2013 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Java Developer Java - 1of 1 vote
AnswersWhat are immutable objects? What are their Advantages? Design a immutable object with Date object as a member attribute. NOTE : Since Date is mutable, he wanted to check whether I could resolve that. I dint though :(
- Saurabh January 28, 2013 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Java Developer Java Object Oriented Design - 0of 0 votes
AnswersWhich Design patterns have you worked on? What is Singleton? Design a Singleton Class. Make it thread safe.
- Saurabh January 28, 2013 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Java Developer Java Knowledge Based - 2of 2 votes
AnswersGiven a string we have to find first non-repeating character in the string....
- varunesh.88 December 07, 2012 in India
Example: str="aabbbccccddeffffgg";
Answer is : e| Report Duplicate | Flag | PURGE
Morgan Stanley Intern C - 0of 0 votes
AnswersWrite a function to check whether the two strings are rotation of each other or not.
Example: str1="Password" str2="ordPassw"
My Solution was.........
- varunesh.88 December 07, 2012 in India#include<stdio.h> void fn(char * str1, char * str2) { int i=0, j=0,flag=0; while(str2[i]) { if(str2[i]== *str1) { flag=1; break; } i++; } if(!flag) { printf("2nd String is not a rotation of other\n"); return; } j=i; while(str2[i]) { if( !(str2[i]==*str1)) { printf("2nd String is not a rotation of other\n"); return; } i++; str1++; } i=0; while(i<j) { if( !(str2[i]==*str1)) { printf("2nd String is not a rotation of other\n"); return; } i++; str1++; } if(*str1=='\0') printf("String are rotation of each other\n"); else printf("2nd String is not a rotation of other\n"); } int main() { char * str1="Password"; char * str2="ordPassw"; fn(str2, str1); return 0; }
| Report Duplicate | Flag | PURGE
Morgan Stanley Intern C - 0of 0 votes
AnswersGiven an unsorted array, how to divide them into two equal arrays whose sum of difference is minimum.
- Psycho September 29, 2012 in United States
Can it be done in o(n)?| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm Morgan Stanley Java Developer Coding - 0of 0 votes
Answershow to sort 100 numbers given using memory size sufficient for 20 elements only(like array of size 20)
- anu August 07, 2012 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Developer Program Engineer - 0of 0 votes
Answershow to convert an english sentence into our native language sentence(given an dictionary of english-native language)..what data structures will be used for implementing dictionary and how to convert using it??
- anu August 07, 2012 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Developer Program Engineer - 0of 0 votes
Answershow does Java do Garbage Collection?
- Itcecsa May 11, 2012 in United States| Report Duplicate | Flag | PURGE
Morgan Stanley Financial Software Developer Java - 0of 0 votes
Answersimplement shared_ptr in C++
- Itcecsa May 11, 2012 in United Statestemplate <class T> class shared_ptr { private: T* _t; int *count; public: shared_ptr(T* t){ _t = t; count = new int(1); } template <class D> shared_ptr(shared_ptr<D>& d){ _t = d.Get(); count = d.GetCount(); *count = (*count)+1; } ~shared_ptr() { *count = (*count)-1; if(*count == 0) delete _t; } template <class D> shared_ptr<T>& operator= (shared_ptr<D>& d) { if( this->Get() != d.Get() ) { *count = (*count)-1; if( *count == 0) delete _t; _t = d.Get(); count = d.GetCount(); *count = *count + 1; } return *this; } T* Get() { return _t; } int* GetCount() { return count; } };
| Report Duplicate | Flag | PURGE
Morgan Stanley Financial Software Developer C++ - 1of 1 vote
Answers* You are given 2 eggs.
- dareyouspam May 06, 2012 in United States
* You have access to a 100-storey building.
* Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical.
* You need to figure out the highest floor of a 100-storey building an egg can be dropped without breaking.
* Now the question is how many drops you need to make. You are allowed to break 2 eggs in the process.| Report Duplicate | Flag | PURGE
NVIDIA Morgan Stanley Software Engineer / Developer Brain Teasers Algorithm - 1of 1 vote
AnswersGiven an array, write a function to return the kth largest number in the array. Should done in O(n) time complexity.
- CreepyMan March 03, 2012 in United States| Report Duplicate | Flag | PURGE
Morgan Stanley Associate Algorithm - 1of 1 vote
AnswersExplain virtual function, up-casting and applications?
- shashaanktyagi November 12, 2011 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Analyst Object Oriented Design - 0of 0 votes
AnswersHow will you restrict the memory allocated to a program by an operating system ?
- shashaanktyagi November 12, 2011 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Analyst Operating System - 0of 0 votes
AnswersHow would you find out a word with maximum number of occurences in a big book ..like big big book..
- jainpratik0911 September 11, 2011 in India| Report Duplicate | Flag | PURGE
Morgan Stanley Technical Support Engineer Algorithm - 0of 0 votes
AnswersWrite a C function to reverse a string given just two character pointers along with the input string.
- amitlangote09 September 08, 2011 in India for Morgan Stanley| Report Duplicate | Flag | PURGE
Morgan Stanley Analyst C - 0of 0 votes
AnswersThis was the technical question in the recent interview..Print a n*n matrix in spiral order and what will be the consequences(if u use recursion) in case of larger matrices like 10000*10000..
- Rajkumar S August 06, 2011| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Algorithm - 0of 0 votes
Answers. There are 3 people on a tower which may collapse due to fire. King(78 kg),Queen(42kg) and Prince(36kg).There is a pulley on the tower with baskets tied to it on both the sides of rope around the pulley. There is a 30kg stone in one of the baskets. There can be two persons or a person and a stone or a person or a stone in the baskets keeping in mind that the weight difference is not more than 6kg else rope would break. You have to bring all the three on ground safely.
- Anonymous January 26, 2011| Report Duplicate | Flag | PURGE
Morgan Stanley Development Support Engineer Brain Teasers - 0of 0 votes
AnswersWhat is SOAP, XML used for?
- Anonymous December 02, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer XML - 0of 0 votes
AnswersSuppose you have a large file with lots of words. How would you find the unique words and their count?
- hamepal November 19, 2010
What kind of data structure u will use? What will be the time complexity and space complexity?| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWhat is a futex?
- blueskin.neo November 18, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Computer Architecture & Low Level - 0of 0 votes
Answersname 3 process synchronization methods.
- pippin October 25, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer - 0of 0 votes
Answerswhich is tightily coupled containment or inheritance
- pippin October 25, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer - 0of 0 votes
AnswersDifference between List<String> and List
- Anonymous August 24, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer - 0of 2 votes
AnswersGiven n stairs, how many number of ways can you climb if u use either 1 or 2 at a time?
- Anonymous August 24, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer - 0of 0 votes
AnswersVarious locks- Reader-WRiter lock, RWGuard locks, prod-consumer lock process, couple of TCP/IP and UDP questions. Message in TCP always appear in the order sent.
- Xankar May 18, 2010| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Networking / Web / Internet - 0of 0 votes
AnswerFIX protocol, messages, architecture and how the whole process is carried out.
- Xankar May 18, 2010
If you have included FIX in your resume then definately refer to the pdf here:
ksvali.com/2009/02/fix-protocol-videos-on-youtube-finally/| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Networking / Web / Internet - 0of 0 votes
AnswerHandler-body idiom design.
- Xankar May 18, 2010
We chatted for an hour. I cracked most of it but I got too hacky while suggesting solutions. He said I was sneaky! :D But made him understand that I wanted to crack the questions first and then would go for a better design/implelementation.| Report Duplicate | Flag | PURGE
Morgan Stanley Software Engineer / Developer Object Oriented Design