[ INFO ]category: Behavioral · Onsite difficulty: average freq: first seen: 2024-06-27
[AVERAGE][ONSITE]OnsiteSWE III (Senior)Accepted
$catproblem.md
Walmart Interview Experience:
Currently working in a Product Based Company.
Year of Experience - 3 years
Round 1 (DSA or Problem Solving Round):
During this round, I was asked to solve the following problems:
Remove duplicate nodes from a sorted linked list.
Merge two sorted linked lists.
Find the largest width of a binary tree.
Perform a left boundary traversal of a binary tree.
Create a binary tree using preorder and inorder traversal.
There was one additional binary tree question that I can't recall.
I was allowed to use any IDE for execution, the interviewer was assessing responses and generating test cases based on solutions. Additionally, I was asked to write linked lists and binary trees creation code for the above problems.
Round 2 (Java + LLD):
What happens behind the scenes when we click the run button in IntelliJ to start our application?
Exception Handling in Java: Discussion on various mechanisms and best practices for handling exceptions.
OOP Principles: Detailed questions were asked about each Object-Oriented Programming principle, with deep dives based on my responses.
SOLID Principles:
Was asked to write a service adhering to SOLID principles.
Questions focused on how I created the service, the reasoning behind on design choices, and in-depth questions on the annotations used.
How to add additional features to the same service while maintaining SOLID principles.
There was a completely different question aimed at assessing how we create separate classes and define the relationships between them.
In-depth questions were asked on every component of the SOLID principles, with follow-up questions.