Panda Guru LogoPanda
Guru

Wayfair L2 Interview Experience

Screening Round

Questions:

  1. Question 1: List the anagrams in a given list of input strings for each string in the query list.

    • Input:
      ["abc", "cba", "def"]
    • Query:
      ["bca", "fde"]
    • Output:
      [["abc","cba"],["def"]]
  2. Question 2: Move through a maze problem where each move from a source (0,0) can happen in all four directions (i+x,j), (i-x,j), (i,j-x), (i,j+x) where x is a jump parameter if there are no obstacles in the way. We have to find the minimum moves required to reach the destination.

Candidate's Approach

No approach provided.

Interviewer's Feedback

No feedback provided.


Round 1: Machine Coding Round

Questions: Question: Given a Package and Cargo classes implementing Ipackage and Ishipping methods respectively. The following methods need to be implemented in the Cargo class:

Total cost can be found using the following formula:

Category can be determined based on the weight of the product:

packageList() should return a map with package name and quantity.
categoryList() should return a map with category name and List(package ids).

Candidate's Approach

The candidate got confused with the question and couldn't finish the code on time. They mentioned that time management is key and are not expecting to clear this round.

Interviewer's Feedback

No feedback provided.