Filter interviews by
A HashMap in Java stores key-value pairs for efficient data retrieval using hashing.
Use an array of buckets to store entries: Each bucket can handle collisions using linked lists.
Implement methods like put(key, value), get(key), and remove(key).
Example of put: hashmap.put('key1', 'value1');
Example of get: String value = hashmap.get('key1');
Handle resizing when load factor exceeds a threshold (e.g., 0.75).
Calculate the amount of water that can be trapped between bars after rainfall using heights of bars.
Use two pointers to traverse the array from both ends towards the center.
Maintain two variables to track the maximum height from the left and right.
At each step, calculate trapped water based on the minimum of the two maximum heights.
Example: For heights [0,1,0,2,1,0,1,3,2,1,2,1], the trapped water is 6.
Design a parking lot system
Consider the size and layout of the parking lot
Include features like ticketing system, payment options, and security measures
Implement a system to track available parking spaces and manage vehicle entry/exit
Remove leaf nodes of a tree
Traverse the tree in postorder fashion
For each node, check if it is a leaf node (both children are null)
If it is a leaf node, remove it by setting its parent's reference to null
Implementing polyfills for map and filter functions in JavaScript to enhance array manipulation capabilities.
Polyfill for map: Creates a new array by applying a function to each element. Example: arr.map(x => x * 2).
Polyfill for filter: Creates a new array with elements that pass a test. Example: arr.filter(x => x > 10).
Use 'this' context in polyfills to maintain the correct scope. Example: arr.map(functi...
Lodash's `get` method retrieves values from objects using a path, with optional default values.
Lodash's `get` function allows safe access to nested object properties.
Syntax: `_.get(object, path, [defaultValue])`.
Example: `_.get({ a: { b: 2 } }, 'a.b')` returns `2`.
If the path doesn't exist, it returns `undefined` or a specified default value.
Example: `_.get({ a: { b: 2 } }, 'a.c', 'default')` returns `'default'.
Microservices are implemented using RESTful APIs and message brokers for asynchronous communication.
RESTful APIs are used for synchronous communication between microservices.
Message brokers like Kafka or RabbitMQ are used for asynchronous communication.
Microservices communicate with each other using HTTP requests and responses.
Each microservice has its own database and communicates with other microservices through...
I follow the MVC design pattern as it separates concerns and promotes code reusability.
MVC separates the application into Model, View, and Controller components.
Model represents the data and business logic.
View represents the user interface.
Controller handles user input and updates the model and view accordingly.
MVC promotes code reusability and maintainability.
Example: Ruby on Rails framework follows MVC pattern.
Design a Java-like Garbage Collector with minimal configurations.
Choose a garbage collection algorithm (e.g. mark-and-sweep, copying, generational)
Determine the heap size and divide it into regions (e.g. young, old, permanent)
Implement a root set to keep track of live objects
Set thresholds for garbage collection (e.g. occupancy, time)
Implement the garbage collection algorithm and test for memory leaks
Memoization is a technique used in programming to store the results of expensive function calls and return the cached result when the same inputs occur again.
Memoization helps improve the performance of a function by caching its results.
It is commonly used in dynamic programming to optimize recursive algorithms.
Example: Memoizing a Fibonacci function to avoid redundant calculations.
I applied via Naukri.com and was interviewed in Jul 2024. There were 3 interview rounds.
Calculate the amount of water that can be trapped between bars after rainfall using heights of bars.
Use two pointers to traverse the array from both ends towards the center.
Maintain two variables to track the maximum height from the left and right.
At each step, calculate trapped water based on the minimum of the two maximum heights.
Example: For heights [0,1,0,2,1,0,1,3,2,1,2,1], the trapped water is 6.
I applied via Approached by Company and was interviewed in Mar 2024. There were 5 interview rounds.
I applied via Recruitment Consulltant and was interviewed in Feb 2024. There was 1 interview round.
Memoization is a technique used in programming to store the results of expensive function calls and return the cached result when the same inputs occur again.
Memoization helps improve the performance of a function by caching its results.
It is commonly used in dynamic programming to optimize recursive algorithms.
Example: Memoizing a Fibonacci function to avoid redundant calculations.
A Promise is an object representing the eventual completion or failure of an asynchronous operation.
A Promise is used to handle asynchronous operations in JavaScript.
It represents a value that may be available now, or in the future.
A polyfill for Promise can be implemented using the setTimeout function to simulate asynchronous behavior.
I applied via LinkedIn and was interviewed in Oct 2022. There were 3 interview rounds.
I appeared for an interview before May 2024, where I was asked the following questions.
A HashMap in Java stores key-value pairs for efficient data retrieval using hashing.
Use an array of buckets to store entries: Each bucket can handle collisions using linked lists.
Implement methods like put(key, value), get(key), and remove(key).
Example of put: hashmap.put('key1', 'value1');
Example of get: String value = hashmap.get('key1');
Handle resizing when load factor exceeds a threshold (e.g., 0.75).
I appeared for an interview before May 2023.
Remove leaf nodes of a tree
Traverse the tree in postorder fashion
For each node, check if it is a leaf node (both children are null)
If it is a leaf node, remove it by setting its parent's reference to null
Design a parking lot system
Consider the size and layout of the parking lot
Include features like ticketing system, payment options, and security measures
Implement a system to track available parking spaces and manage vehicle entry/exit
I applied via Approached by Company and was interviewed before Mar 2023. There were 3 interview rounds.
Applied for front end engineer
Two sum
Find element in Matrix m*m changed to Find m*n on flow
Adding two linked list
Lodash's `get` method retrieves values from objects using a path, with optional default values.
Lodash's `get` function allows safe access to nested object properties.
Syntax: `_.get(object, path, [defaultValue])`.
Example: `_.get({ a: { b: 2 } }, 'a.b')` returns `2`.
If the path doesn't exist, it returns `undefined` or a specified default value.
Example: `_.get({ a: { b: 2 } }, 'a.c', 'default')` returns `'default'.
Implementing polyfills for map and filter functions in JavaScript to enhance array manipulation capabilities.
Polyfill for map: Creates a new array by applying a function to each element. Example: arr.map(x => x * 2).
Polyfill for filter: Creates a new array with elements that pass a test. Example: arr.filter(x => x > 10).
Use 'this' context in polyfills to maintain the correct scope. Example: arr.map(function(x)...
I applied via Job Portal and was interviewed before Apr 2023. There was 1 interview round.
I applied via Approached by Company and was interviewed before Feb 2023. There was 1 interview round.
I applied via Referral and was interviewed before Nov 2022. There were 4 interview rounds.
Data structures and algorithms, leetcode medium level.
Java with data structures and algorithms round
Top trending discussions
Some of the top questions asked at the Walmart Software Engineer III interview for experienced candidates -
The duration of Walmart Software Engineer III interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 10 interview experiences
Difficulty level
Duration
based on 164 reviews
Rating in categories
Software Engineer III
2.1k
salaries
| ₹22.7 L/yr - ₹41 L/yr |
Senior Software Engineer
1.7k
salaries
| ₹34.1 L/yr - ₹60 L/yr |
Software Engineer
942
salaries
| ₹19.1 L/yr - ₹35 L/yr |
Software Developer
464
salaries
| ₹18.9 L/yr - ₹35 L/yr |
Software Development Engineer 3
378
salaries
| ₹24 L/yr - ₹40 L/yr |
Amazon
Reliance Retail
DMart
Reliance Digital