Discover your dream Career
For Recruiters

Inside Morgan Stanley's Hong Kong tech interview problems

When interviewing for technology jobs at investment banks, coding tests are standard. However, not all coding tests are the same. 

We recently highlighted four coding problems you could face at a Morgan Stanley tech interview, but in Asia the coding questions might be of a different nature. 

A Hong Kong based technologist posted details of a recent Morgan Stanley interview on Leetcode. He applied for a technology analyst position on the island and he says these are the questions you could expect.

First Unique Character

The first problem the interviewee encountered they likened to the popular leetcode problem, "First Unique Character in a String." When given a string of lower case letters, you must return the index number of the first unique character within the sequence.

You would appear quite lucky to get this problem. Ranked as easy on Leetcode, 59.6% of users were able to solve it, with the top ranked solution doing so in just seven lines of Java code. You can see that solution here.

Visiting Cities

A decidedly more wordy problem than the previous question, this problem involves calculating the minimum cost of travelling between two cities connected by two bus lines. The problem itself can be seen below.

One solution suggests that you iterate through each station, starting with the first, and calculate the cost of switching lines. Should it work out as cheaper they switch, otherwise they remain on the initial line. Their solution, written in Python, can be seen below.

Multiple Choice Questions

The interviewee said that, after their two coding questions came four multiple choice. One such question can be seen below:

Click here to create a profile on eFinancialCareers. Comment ANONYMOUSLY on articles and make yourself visible to recruiters hiring for top jobs in technology and finance. 

Have a confidential story, tip, or comment you’d like to share? Contact: alex.mcmurray@efinancialcareers.com in the first instance. 

Bear with us if you leave a comment at the bottom of this article: all our comments are moderated by human beings. Sometimes these humans might be asleep, or away from their desks, so it may take a while for your comment to appear. Eventually it will – unless it’s offensive or libelous (in which case it won’t.)

author-card-avatar
AUTHORAlex McMurray Editor
  • Br
    BronchoSyrup
    14 April 2023

    Just don't scrap your head. Have a second computer next to you to google the answer.

Sign up to our Newsletter!

Get advice to help you manage and drive your career.

Boost your career

Find thousands of job opportunities by signing up to eFinancialCareers today.
Recommended Jobs
Cobalt Recruitment
Private Equity- Investment Analyst
Cobalt Recruitment
London, United Kingdom
Selby Jennings
Credit Quantitative Developer - $18BN AUM NYC Hedge Fund
Selby Jennings
Manhattan, United States
Susquehanna Pacific Pty Ltd
Buy-Side Research Analyst [Hong Kong]
Susquehanna Pacific Pty Ltd
Hong Kong
Principle Partners
Investment Analyst - Equities
Principle Partners
Hong Kong

Sign up to our Newsletter!

Get advice to help you manage and drive your career.