Wednesday 27 February 2013

Morgan Stanley Quant Test

Morgan Stanley took a test for it's Quantitative Analyst profile. The test had 2 sections "Easy" and "Difficult" and total duration was about 2.5 hours.


Easy

1) Prove no square matrices A, B exists such that AB-BA = I. (Hint: use trace(X))

2) Each amoeba my transform to 0 amoeba (means that it's dead), 1 amoeba (stays itself) or 2 amoebas (reproduces a child). We initially have 1 amoeba. Find probability of the process up with 0 amoeba in the end.

3) Consider all strings composed of of {0, 1, 2}. Find number of strings such that no two 1s are consecutive in the string.

4) Given X, Y are Uniform(0,1) random variables. Find distribution of X^2 + Y^2.

5) Write algorithm to find lowest common ancestor of 2 nodes in a binary tree.

6) Solve the recurrence f(a, b) = f(a, b-1) + f(a-1, b-1) with base cases
    f(0, 0) = 1,
    f(0, k) = 0,
    f(k, 0) = 1. (Hint: Did you observe it's a Pascal Identity)



Difficult

1) Give an algorithm to find longest alternating subsequence in an array of numbers. The sequence need not be continuous. Alternating means that 1st term is greater than 2nd term, 2nd term is smaller than 3rd term and so on OR 1st term is smaller than 2nd term, 2nd term is greater than 3rd term and so on.

2) You are given a stream of numbers. Give an efficient data structure to find median of the numbers read so far from the stream in O(1) time.

3) You are given w white balls and b black balls initially in a box. Each time we randomly draw a ball from the box and remove it.We continue until no white ball is left in the box. Find the expected number of black balls in the box in the end.

4) Give a method to randomly choose any K-size subset from an N-size subset, however, N is not known to you.

5) Find all functions f, such that f(mA+nB) = mf(A) + nf(B), f(AB) = f(BA), where A, B are square matrices, find f in terms of a matrix M.

41 comments:

  1. Very Informative and useful, keep it up the great work. For free free download fully pc games, you may also visit us. Ocean of Games

    ReplyDelete
  2. Get latest sports info at
    https://sportstime.info/

    ReplyDelete
  3. very nice website on this topic. Would like to read more. Here is the link to my website
    Images For 4th Of July 2018
    Fourth Of July Quotes
    4th Of July 2018 Messages

    ReplyDelete
  4. Your website has very good content. Here is link to another website that has useful content
    Friendship Day SMS

    ReplyDelete
  5. The icoshowcase is a platform to analyze and rate all the latest ICO list like upcoming Icos, active Icos and Ico calendar. Even anyone can list their Icos for free on the site. Stay tuned on the site for further information about latest ICO list in 2018.

    Ico list
    upcoming icos
    ico calendar
    active icos

    ReplyDelete
  6. Very Nice Article to read. Blog articles helped me alot in many ways to find the good solution. Am very happy to comments here. Thanks for sharing this kind of wonderful article in this blog. Lovely ! Kindly Visit Us @ CCTV Camera Supplier MATRIX dealers

    ReplyDelete
  7. شركة تنظيف سجاد بالمدينة المنورة

    شركتنا واحدة من أفضل شركات تنظيف سجاد بالمدينة المنورة وهذا ما يجعلنا أهلا لثقة العملاء الذين يتعاملون معنا حيث يفضلون التعامل مع شركتنا لما تتميز به فى هذا المجال أن لدينا كافة الأدوات الحديثة التى تشمل معدات التنظيف بالبخار و أدوات التنظيف الآلي الحديث و كافة أنواع الخامات الحديثة و المتطورة التى لا تؤثر على الأقمشة والمنسوجات و تزيل كافة أنواع البقع فى أسهل طريقة وتمتلك الآلات الخاصة بالتجفيف السريع و أدوات التحميل و التنزيل الخاصة بتنزيل كميات كبيرة من السجاد و معدات عملاقة تقوم بعمليات التنظيف فى أسهل طريقة و بأسرع ما يمكن سيارات تابعة للشركة تنتقل الى مكان العميل لتقوم بنقل كافة أنواع السجاد.

    ReplyDelete


  8. Amazing article. Your blog helped me to improve myself in many ways thanks for sharing this kind of wonderful informative blogs in live. I have bookmarked more article from this website. Such a nice blog you are providing ! Kindly Visit Us @ Packers And Movers Mumbai

    ReplyDelete
  9. Tyson vs Jones Jr Live Stream following through their official Facebook page. Like other social platform here also we have our official Facebook page you can enjoy the show to go through our page.

    ReplyDelete
  10. The first SB live stream was played between the AFL champion Kansas City Chiefs and the NFL champion Green Bay Packers. The Packers would win the game by a score of 35-10. Green Bay would go on to win the Super Bowl again the following year, this time against the Oakland Raiders of the AFL.

    ReplyDelete
  11. If you search in the community like Reddit, Twitter, Youtube. You will find some users directly broadcast the Commetraty of the events. You can get the watch ufc 257 live fight result in real-time.

    ReplyDelete
  12. Mayweather proved all of his fans wrong, and with the announcement of playing another exhibition match against mayweather vs paul twitter on 6 June 2021 . Although neither Mayweather’s nor Logan’s camps have said anything about the motivation behind organizing such unmatched yet utterly lucrative exhibition match. The match’s venue and time are yet to be announced, yet it is drawing millions of people’s interest already on pay-per-view.

    ReplyDelete