Meesho | SDE-1 | Bangalore
Anonymous User
150

I was referred to SDE-1 position. HR contacted me and provided me with Online Assesment link.

Online Assesment ( Hackerrank | Round 1 ):

3 questions were asked. 2 of medium and 1 of hard difficulty. HR mentioned that 58% would be the passing criteria.

  1. Needed to find number of pairs in array where a^b <= a&b.
  2. String question with two string t and s, where we had to transform t string with the operation of concat on it with itself until the point where s is a substring of t. If we construct this modified t, we had to remove the substring s from it and return or print -1.
  3. It was a combitorial question where the formula was itself given in testcase, however, I think there was some issue with the testcases as 3 numbers of long were provided, and in answer we needed to compute factorial and power of these which i don't think is even possible ( wasn't able to pass any test cases in this one ).

After 1.5 week, HR scheduled machine coding round for today.

Machine Coding Round ( 1hr 30mins ):
Interviewer described the problem statement and left, saying they will join before 20 mins of end time.
Question: design inventory management system for e-commerce. These were the 4 requirements:

  1. addProduct( String productId, String productDetail, Integer quantity );
  2. createOrder( List productids, List quantity, String orderId );
  3. confirmOrder( String orderId );
  4. getInventory(String productId);
    Could use hackerrank or own IDE ( I used hackerrank, which cost me quite time in boilerplate code )

Question was quite straightforward, but there was a small twist. When createOrder is called, the inventory with the required products should be blocked until that order is confirmed. I was unable to properly understand the question, however after discussing the basic approach I straight ahead went for implementation. I was just able to complete implementation when the interviewer was back. I implemented such that on createOrder, the products quantity would be directly reduced from inventory, also created a cancelOrder function. I explained that we can have some scheduler which cancels order after some time has passed in order to free the product count in inventory. However interviewer needed a different approach. I then come up with the solution of having 2 counts in product. Interviwer was satisfied with the approach but as the time was just about over, was not allowed to modify or even run testcases. Interviewer gave feedback that she was happy with LLD approach, but I lacked proper time management.

Verdict: Most likely rejected as the HR is not picking up call anymore :*)

Suggestion while appearing in Meesho machine coding: go through all the previously asked LLD questions, almost everytime same questions are asked, so you can practice them and also solve for concurrency.

Comments (1)