BNY Internship Test | On Campus

169
Jul 25, 2026

Hi Everyone,

I just gave my BNY internship test on HackerRank. It was a On-Campus Opportunity and the test was for 1.5 hrs and consisted of 2 DSA and 1 DEV question.
I will try to describe the questions closet to what I rememeber

1. Find Minimum Price to Pay (Uses Priority Queue)

You are given an array prices where each prices[i] - represents the i-th item and you also have m coupons where k coupons can decrease the price[i] by price[i]/2k.
and Now, You need to distribute m coupons such that the sum of all final item prices is minimized.


2. Reduce Diameter of Tree

You are tree of n nodes represented by n-1 edges in the form of an array where each element in the form of [u,v] and denotes the edge between u and v here.
An integer k, represent maximum number of operations you can perform and in each operation you can remove any leaf node along with its incident edge.
Return the minimum possible diameter after performing the operations.


3. Followers Count

I didn't spend time on this question since it seemed to related to react so I can't phrase the exact terms but it is close to something like the follower count not getting updated in the site when a new account follows a page.(Not even close to the question I guess)


I was close to solving the 1st question but only 5 testcases of mine passed and after test completion I came to know that using priority queue it can solved greedily but i got stuck in sorting + greedy and was not able to solve it properly and for the second question Although I was able to understand it fine I was not able to implement it within the given time.

So, I don't think I'll be making it through this internship process.
But this learning is same weighted valuable for me.

Comments (0)