Filter interviews by
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.
Use two threads to print even and odd numbers in sequence
Create two threads, one for printing even numbers and one for printing odd numbers
Use synchronization mechanisms like mutex or semaphore to ensure numbers are printed in sequence
Start both threads simultaneously and let them print numbers alternately
Math.floor() is a method in JavaScript that rounds a number down to the nearest integer.
Math.floor() returns the largest integer less than or equal to a given number.
It is commonly used to convert a floating-point number to an integer.
Example: Math.floor(3.9) returns 3.
Mocking components in Jest for testing with props and named exports
Use jest.mock() to mock components and their exports
For handling props, use jest.fn() to create mock functions and pass them as props to the component being tested
For named exports, use jest.mock() with a second argument to specify the module's exports
To add and manipulate elements in arrays using JavaScript, you can use array methods like splice() and slice().
Use the splice() method to insert elements into an array at a specific index. For example, arr.splice(index, 0, 'watermelon') will insert 'watermelon' at the specified index without removing any elements.
To manipulate elements in an array, you can use methods like splice() to remove elements or slice() to...
Explanation of useState, useEffect, useMemo, and useCallback hooks in React functional components.
useState is used to manage state in functional components
useEffect is used for handling side effects like data fetching, subscriptions, etc.
useMemo is used for performance optimization by memoizing expensive calculations
useCallback is used for memoizing functions to prevent unnecessary re-renders
These hooks enhance fu...
Lifecycle methods in class components and their hooks equivalents manage component behavior during mounting, updating, and unmounting.
componentDidMount: Runs after the component is mounted. Use useEffect(() => { /* code */ }, []); for hooks.
componentDidUpdate: Invoked after updates. Use useEffect(() => { /* code */ }, [dependencies]); for hooks.
componentWillUnmount: Cleanup before unmounting. Use return func...
PropTypes are a way to type-check props in React components to ensure they are passed correctly.
Used in React to specify the data type of props passed to a component
Helps catch bugs by providing warnings if incorrect data types are passed
Can be defined using PropTypes library or as static properties in a component
A simple webpage design using HTML, CSS, and JavaScript to display a greeting message.
Use HTML to structure the page with a header, main content, and footer.
Style the page with CSS for layout and design, e.g., using flexbox.
Add JavaScript to handle user interactions, like a button click to display an alert.
Design an auto-suggest feature that provides real-time suggestions based on user input.
Use a trie data structure for efficient prefix searching.
Implement a debounce mechanism to limit API calls while typing.
Fetch suggestions from a backend service based on user input.
Consider user context and history for personalized suggestions.
Example: As the user types 'ap', suggest 'apple', 'apricot', 'application'.
I appeared for an interview in Aug 2024.
Explanation of useState, useEffect, useMemo, and useCallback hooks in React functional components.
useState is used to manage state in functional components
useEffect is used for handling side effects like data fetching, subscriptions, etc.
useMemo is used for performance optimization by memoizing expensive calculations
useCallback is used for memoizing functions to prevent unnecessary re-renders
These hooks enhance functio...
Lifecycle methods in class components and their hooks equivalents manage component behavior during mounting, updating, and unmounting.
componentDidMount: Runs after the component is mounted. Use useEffect(() => { /* code */ }, []); for hooks.
componentDidUpdate: Invoked after updates. Use useEffect(() => { /* code */ }, [dependencies]); for hooks.
componentWillUnmount: Cleanup before unmounting. Use return function ...
Setting up Redux store, connecting components, managing actions and reducers, and using middleware like Redux Thunk or Redux Saga for handling asynchronous actions.
Setting up a Redux store involves creating a store with createStore() function from Redux, combining reducers with combineReducers(), and applying middleware like Redux Thunk or Redux Saga.
Connecting components to the Redux store can be done using the connec...
To add and manipulate elements in arrays using JavaScript, you can use array methods like splice() and slice().
Use the splice() method to insert elements into an array at a specific index. For example, arr.splice(index, 0, 'watermelon') will insert 'watermelon' at the specified index without removing any elements.
To manipulate elements in an array, you can use methods like splice() to remove elements or slice() to extr...
Math.floor() is a method in JavaScript that rounds a number down to the nearest integer.
Math.floor() returns the largest integer less than or equal to a given number.
It is commonly used to convert a floating-point number to an integer.
Example: Math.floor(3.9) returns 3.
Mocking components in Jest for testing with props and named exports
Use jest.mock() to mock components and their exports
For handling props, use jest.fn() to create mock functions and pass them as props to the component being tested
For named exports, use jest.mock() with a second argument to specify the module's exports
I applied via Recruitment Consulltant and was interviewed in Oct 2024. There were 3 interview rounds.
Use two threads to print even and odd numbers in sequence
Create two threads, one for printing even numbers and one for printing odd numbers
Use synchronization mechanisms like mutex or semaphore to ensure numbers are printed in sequence
Start both threads simultaneously and let them print numbers alternately
Detecting cycle in a linked list and discussing behavioral aspects
Explain how to use Floyd's Tortoise and Hare algorithm to detect a cycle in a linked list
Discuss the importance of understanding memory management in linked lists to prevent cycles
Explain the impact of cycles in linked lists on time complexity and space complexity of algorithms
I applied via Walk-in and was interviewed in Sep 2024. There were 3 interview rounds.
SQL, python, PySpark basic to mid level questions.
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 appeared for an interview in Apr 2025, where I was asked the following questions.
I applied via Approached by Company and was interviewed in Mar 2024. There were 5 interview rounds.
I applied via Referral and was interviewed in May 2024. There were 2 interview rounds.
Cycle detection in graph involves detecting if there is a cycle present in a graph data structure.
Use Depth First Search (DFS) or Breadth First Search (BFS) to detect cycles in a graph.
Maintain a visited set to keep track of visited nodes and a recursion stack to keep track of nodes in the current path.
If a node is visited again and is in the recursion stack, then a cycle is detected.
Example: Detecting a cycle in a dir...
I applied via Walmart Careers Page and was interviewed in Mar 2024. There was 1 interview round.
A simple webpage design using HTML, CSS, and JavaScript to display a greeting message.
Use HTML to structure the page with a header, main content, and footer.
Style the page with CSS for layout and design, e.g., using flexbox.
Add JavaScript to handle user interactions, like a button click to display an alert.
PropTypes are a way to type-check props in React components to ensure they are passed correctly.
Used in React to specify the data type of props passed to a component
Helps catch bugs by providing warnings if incorrect data types are passed
Can be defined using PropTypes library or as static properties in a component
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 appeared for an interview before Feb 2024.
I was asked to build an application using Next.js.
I was asked to implement two additional features in the first round assignment, which included questions related to ReactJS, JavaScript, and frontend development.
Design a notification system that captures daily screenshots of web pages and sends them to users; each user will receive a personalized report along with relevant managerial questions.
Top trending discussions
Some of the top questions asked at the Walmart Software Engineer III interview -
The duration of Walmart Software Engineer III interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 34 interview experiences
Difficulty level
Duration
based on 166 reviews
Rating in categories
Software Engineer III
2.1k
salaries
| ₹23 L/yr - ₹41 L/yr |
Senior Software Engineer
1.7k
salaries
| ₹34.2 L/yr - ₹60 L/yr |
Software Engineer
937
salaries
| ₹19.2 L/yr - ₹35 L/yr |
Software Developer
464
salaries
| ₹18.9 L/yr - ₹35 L/yr |
Software Development Engineer 3
380
salaries
| ₹24 L/yr - ₹43 L/yr |
Amazon
Reliance Retail
DMart
Reliance Digital