i
Snapdeal
Filter interviews by
I applied via Recruitment Consultant and was interviewed in May 2021. There were 4 interview rounds.
An immutable class is a class whose instances cannot be modified after creation.
Make all fields private and final
Don't provide any setter methods
Ensure that any mutable objects passed to the constructor are defensively copied
Make the class final so that it cannot be subclassed
Singleton pattern ensures only one instance of a class is created and provides a global point of access to it.
Create a private constructor to prevent direct instantiation of the class.
Create a private static instance of the class.
Create a public static method to access the instance, and create the instance if it doesn't exist.
Ensure thread safety by using synchronized keyword or double-checked locking.
Vector is synchronized and ArrayList is not. Vector is thread-safe and ArrayList is not.
Vector is a legacy class and ArrayList is a part of the Java Collection Framework.
Vector is synchronized which means only one thread can access it at a time, while ArrayList is not.
Vector is thread-safe which means it can be used in a multi-threaded environment, while ArrayList is not.
Vector is slower than ArrayList because of synch...
Create Linked List without using internal library and provide add, delete, find functionality.
Create a Node class with data and next pointer
Create a LinkedList class with head pointer and methods to add, delete, and find nodes
Use a loop to traverse the list and perform operations
Handle edge cases such as adding to an empty list or deleting the head node
The current system follows a microservices architecture.
The system is divided into multiple independent services.
Each service has its own database and communicates with other services through APIs.
The architecture allows for scalability and flexibility.
Examples of microservices used in the system include user authentication, payment processing, and inventory management.
Find the total no of islands in a 2D matrix.
Use DFS or BFS to traverse the matrix.
Mark visited cells to avoid repetition.
Count the number of islands found.
Loop detection in a linked list.
Use two pointers, one moving at twice the speed of the other.
If there is a loop, the faster pointer will eventually catch up to the slower one.
If there is no loop, the faster pointer will reach the end of the list.
Top trending discussions
I applied via LinkedIn and was interviewed in Nov 2024. There was 1 interview round.
posted on 9 Nov 2024
I applied via LinkedIn and was interviewed in May 2024. There were 3 interview rounds.
Event loop is a mechanism in programming that allows for asynchronous execution of code by continuously checking for and handling events.
Event loop is commonly used in JavaScript to handle asynchronous operations like setTimeout, setInterval, and AJAX requests.
It works by continuously checking the event queue for any pending events, executing them one by one, and then moving on to the next event.
Event loop helps in pre...
The order of output is fs, process, setTimeout, setInterval, promise.
fs module is synchronous and will output first
process is next in line
setTimeout will be executed after process
setInterval will be executed after setTimeout
promise will be executed last
JavaScript is an interpreted language.
JavaScript is an interpreted language, meaning it is executed line by line at runtime.
There is no separate compilation step in JavaScript like in languages that use compilers.
Examples of interpreted languages include Python, Ruby, and PHP.
Output comparison of for loops using var, let, and bind in JavaScript.
Using var: variable is function-scoped, may lead to unexpected behavior in loops.
Using let: variable is block-scoped, recommended for loop iterations.
Using bind: creates a new function with a specified 'this' value and initial arguments.
I work on coding, debugging, testing, and collaborating with team members. Tech stack decisions are based on project requirements, scalability, performance, and team expertise.
Daily tasks include coding, debugging, testing, and collaborating with team members
Tech stack decisions are based on project requirements, scalability, performance, and team expertise
Consider factors like language compatibility, libraries/framewo...
Design a scalable, real-time document sharing app like Google Docs.
Use websockets for real-time collaboration
Implement version control to track changes
Utilize a distributed database for scalability
Include user authentication and access control
Support offline editing with automatic sync
Utilize cloud storage for scalability, implement image compression techniques, and regularly update image processing libraries.
Utilize cloud storage for scalability
Implement image compression techniques
Regularly update image processing libraries
Questions were crayon box ,the bot and the game and happy neighbourhood for 90 mins
posted on 15 Oct 2024
DSA Problems from leetcode
Designing search systems involves creating efficient algorithms and data structures to quickly retrieve relevant information.
Understand the data structure of the search system (e.g. inverted index, trie)
Implement efficient search algorithms (e.g. binary search, hash tables)
Consider scalability and performance optimization techniques (e.g. caching, indexing)
Include user-friendly features like autocomplete and spell corr...
I applied via Referral and was interviewed in Aug 2024. There was 1 interview round.
I was asked question on sliding window on finding the largest subarray with all distinct numbers. The interviewer was very helpful.
I applied via Referral and was interviewed in Nov 2023. There were 4 interview rounds.
It was a coding round, online assessment. Medium level DSA questions
posted on 4 Feb 2024
I applied via Job Fair
Create a controller, service, and repository to save user details using Spring Data JPA.
Create a UserController class with appropriate mappings for saving user details.
Create a UserService class with a method to save user details.
Create a UserRepository interface that extends JpaRepository to handle database operations.
Implement the saveUserDetails method in the UserService class to call the save method of the UserRepo...
posted on 25 Jul 2024
Some of the top questions asked at the Snapdeal Senior Software Engineer interview -
based on 4 reviews
Rating in categories
Assistant Manager
104
salaries
| ₹4 L/yr - ₹12 L/yr |
Category Manager
94
salaries
| ₹6.9 L/yr - ₹24 L/yr |
Senior Executive
89
salaries
| ₹2.8 L/yr - ₹6.6 L/yr |
Deputy Manager
59
salaries
| ₹5.2 L/yr - ₹15 L/yr |
Associate Category Manager
50
salaries
| ₹5.8 L/yr - ₹17.6 L/yr |
Flipkart
Amazon
Meesho
eBay