Round 1: Online Coding Test
- There are n ticket sellers, each of whom has a certain amount of tickets. The price of each ticket is the number of tickets that ticket-seller has. The number of tickets they want to sell is k. Find the maximum amount that they can earn by selling k tickets. (The PriorityQueue based greedy solution does not pass all test cases, so think of a linear-time one).
- There was a second question on binary strings that I can’t recall now.
- Given a stream of words, print all possible dictionary anagrams of each word. Assume you have a dictionary which tells you if a word is valid or not. (You don’t have to worry about its implementation)
- Towers of Hanoi
Phone screening with AVP who is based out of Chennai. Lengthy discussion on why I’m leaving my current company, the exact work I did, bugs I was faced with and solved, described in detail my latest project, why BankBazaar?
- Given a string, find out if it is composed of a repeating pattern. For example, String s = “xyzxyzxyz” is xyz * 3 (so the function returns true), and for “abcabcd” it returns false
(Solution is at https://www.geeksforgeeks.org/find-given-string-can-represented-substring-iterating-substring-n-times/)
- Given an m x n matrix filled with integer values, find the sub-matrix with the largest sum
- Write two APIs hasPath(A,B) and buildPath(A,B), where A and B represent two locations. Discussion on which implementation (adjacency list vs matrix) is suitable for what kind (dense, sparse) of graphs, time complexities for all common operations for each, and common test cases/possible bugs
Round 5 : Round with HR.
A very long discussion about what BankBazaar does, some history about the company, why BankBazaar, personal interests and hobbies, etc.
If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.