BNY Mellon interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

BNY Mellon
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Tree, Graph, Dynamic Programming, Strings, Array
Tip
Tip

Tip 1 : Start from the basics.
Tip 2 : Increase the question difficulty gradually along with practice
Tip 3 : Master Computer fundamentals- OPPS, OS, SQL

Application process
Where: Other
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Make it simple and crisp. As you need to answer all in-depth questions related to it
Tip 2 : Avoid writing projects/skills you are not very versed with

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date10 Oct 2019
Coding problem2

Consist of 5 MCQs and 2 coding questions.

1. Best Time to Buy and Sell Stock

Moderate
20m average time
80% success
0/80
Asked in companies
IntuitOptumOYO

You are given an array/list 'prices' where the elements of the array represent the prices of the stock as they were yesterday and indices of the array represent minutes. Your task is to find and return the maximum profit you can make by buying and selling the stock. You can buy and sell the stock only once.

Note:

You can’t sell without buying first.
For Example:
For the given array [ 2, 100, 150, 120],
The maximum profit can be achieved by buying the stock at minute 0 when its price is Rs. 2 and selling it at minute 2 when its price is Rs. 150.
So, the output will be 148.
Problem approach

I have used DP to solve this question.
As this was a coding round normal brute force would have given TLE.

Try solving now

2. Complete String

Hard
40m average time
60% success
0/120
Asked in companies
SprinklrThought WorksBNY Mellon

Ninja developed a love for arrays and strings so this time his teacher gave him an array of strings, ‘A’ of size ‘N’. Each element of this array is a string. The teacher taught Ninja about prefixes in the past, so he wants to test his knowledge.

A string is called a complete string if every prefix of this string is also present in the array ‘A’. Ninja is challenged to find the longest complete string in the array ‘A’.If there are multiple strings with the same length, return the lexicographically smallest one and if no string exists, return "None".

Note :
String ‘P’ is lexicographically smaller than string ‘Q’, if : 

1. There exists some index ‘i’ such that for all ‘j’ < ‘i’ , ‘P[j] = Q[j]’ and ‘P[i] < Q[i]’. E.g. “ninja” < “noder”.

2. If ‘P’ is a prefix of string ‘Q’, e.g. “code” < “coder”.
Example :
N = 4
A = [ “ab” , “abc” , “a” , “bp” ] 

Explanation : 

Only prefix of the string “a” is “a” which is present in array ‘A’. So, it is one of the possible strings.

Prefixes of the string “ab” are “a” and “ab” both of which are present in array ‘A’. So, it is one of the possible strings.

Prefixes of the string “bp” are “b” and “bp”. “b” is not present in array ‘A’. So, it cannot be a valid string.

Prefixes of the string “abc” are “a”,“ab” and “abc” all of which are present in array ‘A’. So, it is one of the possible strings.

We need to find the maximum length string, so “abc” is the required string.
Problem approach

It is a simple counting problem, we just need to find the consecutive count of each character.

Try solving now
02
Round
Easy
Telephonic
Duration80 Minutes
Interview date13 Nov 2019
Coding problem3

It was a telephonic round that was scheduled for the morning.
I was asked around 2 coding questions and then OPP concepts. The interviewer was kind enough to explain any doubt patiently.

1. Maximum Height Tree

Hard
60m average time
20% success
0/120
Asked in companies
BNY MellonOracleDirecti

You are given a tree with ‘N’ nodes and ‘N-1’ edges. Your task is to determine the tree's maximum height when we consider any arbitrary node as a root.

For Example:
N = 4
Edges = [2 3], [4 3], [1 3]

Output: 2

Here node 4 is at a distance 2 from node 1 and if we make node 1 as a root, it will give the height of 2, which is the maximum possible in this tree.
Problem approach

I used the recursive approach to solve it. Traveling at each node and storing the current height.
Then the interviewer asked me about the iterative approach as well. I then told Level order traversal approach.

Try solving now

2. Maximum Subarray Sum

Moderate
0/80
Asked in companies
AmazonOracleOptum

You are given an array/list ARR consisting of N integers. Your task is to find the maximum possible sum of a non-empty subarray(contagious) of this array.

Note: An array C is a subarray of array D if it can be obtained by deletion of several elements(possibly zero) from the beginning and the end of array D.

For e.g.- All the non-empty subarrays of array [1,2,3] are [1], [2], [3], [1,2], [2,3], [1,2,3].

Problem approach

I first used two for loop traversal approach with n*2 complexity. 
Then I used the the Kandane's algo to solve the question.

Try solving now

3. OOPS Questions

Questions about Inheritance, Polymorphism, etc. And to explain using some examples.

Problem approach

Tip 1 : Read OOP concepts with examples. No need to go in-depth with them. Just be aware of them

03
Round
Easy
Face to Face
Duration40 Minutes
Interview date20 Dec 2019
Coding problem1

This was mostly a Hiring Manager round. In this, they were mostly asking questions about CV. About all the projects that I have done. What challenges did you face, what did you learn from it, etc. Also, I was asked about the stock question from the first round. I was asked to write a pseudo code for that.
Also SQL queries, a lot of them.
Overall very chill and easy round.

1. DBMS Questions

I was asked to write multiple sql queries for an example db. Like getting all records with some conditions, self join, left join, etc.

Problem approach

Tip 1 : Just prepare top SQL interview questions, I think you will be fine.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6262 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
1598 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 8 problems
Interviewed by BNY Mellon
1367 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by CIS - Cyber Infrastructure
2160 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 4 problems
Interviewed by HashedIn
2630 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 9 problems
Interviewed by HCL Technologies
1850 views
0 comments
0 upvotes