Filter interviews by
This question involves processing an array containing only 1's and 2's, focusing on their arrangement or counting.
Count the number of 1's and 2's in the array. Example: [1, 2, 1] -> 2 ones, 1 two.
Sort the array to group all 1's followed by 2's. Example: [2, 1, 1] -> [1, 1, 2].
Find the maximum or minimum value in the array. Example: In [1, 2, 1], max is 2, min is 1.
Check if the array is balanced (equal number...
Design a ticket booking system for events, movies, and shows with user-friendly features and efficient backend management.
User Registration: Allow users to create accounts for personalized experiences.
Event Listings: Display available events with details like date, time, and venue.
Seat Selection: Provide an interactive seating chart for users to choose their seats.
Payment Gateway: Integrate secure payment options ...
Convert a linked list to a number by interpreting each node's value as a digit, handling edge cases like empty lists.
Node Representation: Each node in the linked list contains a digit (0-9) and a reference to the next node.
Constructing the Number: Traverse the linked list, multiplying the current number by 10 and adding the node's value.
Example: For a linked list 2 -> 4 -> 3, the number is 243 (2*100 + 4*10 ...
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the l...
Detect if a singly linked list forms a cycle by checking if a node's next pointer points back to a previous node.
Use Floyd's Cycle Detection Algorithm to determine if there is a cycle in the linked list.
Maintain two pointers, one moving at twice the speed of the other, if they meet at any point, there is a cycle.
Check if the next pointer of any node points to a previously visited node to detect a cycle.
Given a binary tree with N
nodes, your task is to output the Spiral Order traversal of the binary tree.
The input consists of a single line containing eleme...
Implement a function to return the spiral order traversal of a binary tree.
Traverse the binary tree level by level, alternating between left to right and right to left.
Use a queue to keep track of nodes at each level.
Append nodes to the result list in the order they are visited.
Handle null nodes appropriately to maintain the spiral order.
Example: For input 1 2 3 -1 -1 4 5, the output should be 1 3 2 4 5.
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N mat...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Explore all possible directions ('U', 'D', 'L', 'R') from each cell.
Return the list of valid paths sorted in alphabetical order.
Ninja is learning about doubly linked lists and wants to remove a specified element from the list. Can you assist Ninja in doing this and returning the modified ...
Remove a specified element from a doubly linked list and return the modified list.
Traverse the doubly linked list to find the specified element to be removed.
Update the pointers of the previous and next nodes to skip the node to be deleted.
Handle edge cases like removing the head or tail of the linked list.
Return the modified linked list after removing the specified element.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linke...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node.
Use three pointers - prev, current, and next to reverse the linked list in O(N) time and O(1) space complexity.
Update the head of the reversed linked list as the last node encountered during reversal.
Design and implement a Trie (prefix tree) to perform the following operations:
insert(word)
: Add a string "word" to the Trie.search(word)
: Verify if the string "wo...Implement a Trie data structure to insert, search, and check for prefixes in strings.
Create a TrieNode class with children and isEndOfWord attributes.
Implement insert, search, and startsWith methods in the Trie class.
Use a Trie to efficiently store and search for strings based on prefixes.
Example: insert 'apple', search 'apple' returns true, startsWith 'app' returns true, search 'app' returns false.
Given an undirected graph with 'N' nodes in the form of an adjacency matrix and an integer 'M', determine if it is possible to color the vertices of the graph using at most '...
The problem involves determining if a given graph can be colored with at most 'M' colors without adjacent vertices sharing the same color.
Create a function that takes the adjacency matrix, number of nodes 'N', and maximum number of colors 'M' as input.
Implement a graph coloring algorithm such as backtracking or greedy coloring to check if the graph can be colored with at most 'M' colors.
Check if adjacent vertices ...
I appeared for an interview in May 2025, where I was asked the following questions.
This question involves processing an array containing only 1's and 2's, focusing on their arrangement or counting.
Count the number of 1's and 2's in the array. Example: [1, 2, 1] -> 2 ones, 1 two.
Sort the array to group all 1's followed by 2's. Example: [2, 1, 1] -> [1, 1, 2].
Find the maximum or minimum value in the array. Example: In [1, 2, 1], max is 2, min is 1.
Check if the array is balanced (equal number of 1...
Find the maximum sum of a contiguous subarray in an integer array using Kadane's algorithm.
Use Kadane's algorithm for an efficient O(n) solution.
Initialize two variables: maxSum and currentSum.
Iterate through the array, updating currentSum and maxSum.
Example: For nums = [-2,1,-3,4,-1,2,1,-5,4], maxSum = 6 (subarray [4,-1,2,1]).
If currentSum drops below 0, reset it to 0.
I applied via Campus Placement
1. Online test in campus (1 question, 3hrs - 2018)/
2. Group discussion
3. In person campus interview
I appeared for an interview before Apr 2024, where I was asked the following questions.
Design a ticket booking system for events, movies, and shows with user-friendly features and efficient backend management.
User Registration: Allow users to create accounts for personalized experiences.
Event Listings: Display available events with details like date, time, and venue.
Seat Selection: Provide an interactive seating chart for users to choose their seats.
Payment Gateway: Integrate secure payment options for t...
Convert a linked list to a number by interpreting each node's value as a digit, handling edge cases like empty lists.
Node Representation: Each node in the linked list contains a digit (0-9) and a reference to the next node.
Constructing the Number: Traverse the linked list, multiplying the current number by 10 and adding the node's value.
Example: For a linked list 2 -> 4 -> 3, the number is 243 (2*100 + 4*10 + 3).
...
I applied via Campus Placement and was interviewed before Aug 2022. There were 3 interview rounds.
It was Aon platform where you cannot use C++ STL. questions were on trees dp
I appeared for an interview in Nov 2020.
Round duration - 180 minutes
Round difficulty - Easy
1) 1 coding question need to be solved in 3 hours.there will be 50 test cases, need to pass all the test cases to go to the next rounds.STL in c++ cannot be used, we need to code anything we use from scratch
2) Coding questions will mainly be based on dynamic programming, graphs and backtracking, so prepare those topics well.
You need to determine all possible paths for a rat starting at position (0, 0) in a square maze to reach its destination at (N-1, N-1). The maze is represented as an N*N ma...
Find all possible paths for a rat in a maze from source to destination.
Use backtracking to explore all possible paths in the maze.
Keep track of visited cells to avoid revisiting them.
Explore all possible directions ('U', 'D', 'L', 'R') from each cell.
Return the list of valid paths sorted in alphabetical order.
Round duration - 60 minutes
Round difficulty - Medium
The technical interview 1 has some questions based on basics of oops, Os and one/two coding questions.
Students who clear this round have to go for another technical round
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node.
Use three pointers - prev, current, and next to reverse the linked list in O(N) time and O(1) space complexity.
Update the head of the reversed linked list as the last node encountered during reversal.
Ninja is learning about doubly linked lists and wants to remove a specified element from the list. Can you assist Ninja in doing this and returning the modified...
Remove a specified element from a doubly linked list and return the modified list.
Traverse the doubly linked list to find the specified element to be removed.
Update the pointers of the previous and next nodes to skip the node to be deleted.
Handle edge cases like removing the head or tail of the linked list.
Return the modified linked list after removing the specified element.
Round duration - 60 Minutes
Round difficulty - Easy
The interview again began with my resume but it was very exhaustive. While my friends were asked about both resume and DSA concepts, my interview focused entirely on my resume. I had done a project on distributed computing and the interviewer asked me an application question on multi-threading and synchronisation. It was quite difficult because I was trying to explain my approach and I couldn’t make out if the interviewer was happy with my approach or not. Then he asked to design a contact database without the actual use of DBMS in java. Again I tried to explain my approach but it was tough. The interview ended after asing one or more coding questions.
Given a binary tree with N
nodes, your task is to output the Spiral Order traversal of the binary tree.
The input consists of a single line containing elem...
Implement a function to return the spiral order traversal of a binary tree.
Traverse the binary tree level by level, alternating between left to right and right to left.
Use a queue to keep track of nodes at each level.
Append nodes to the result list in the order they are visited.
Handle null nodes appropriately to maintain the spiral order.
Example: For input 1 2 3 -1 -1 4 5, the output should be 1 3 2 4 5.
Determine if a given singly linked list of integers forms a cycle or not.
A cycle in a linked list occurs when a node's next
points back to a previous node in the ...
Detect if a singly linked list forms a cycle by checking if a node's next pointer points back to a previous node.
Use Floyd's Cycle Detection Algorithm to determine if there is a cycle in the linked list.
Maintain two pointers, one moving at twice the speed of the other, if they meet at any point, there is a cycle.
Check if the next pointer of any node points to a previously visited node to detect a cycle.
Round duration - 30 minutes
Round difficulty - Easy
This was about 30 minutes long interview. First, she asked introduction, after that she was very interested in my internship that I did in summer and about my interests. She asked few common questions on that.
Tip 1 : learn the graphs,dp,backtracking coding problem to pass the coding round
Tip 2 : brush upon your basics for the interview round
Tip 3 : linked list & tree coding questions are mainly asked in interview
Tip 1 : Be ready to explain your projects fluently
Tip 2 : Android development knowledge will be beneficial
I appeared for an interview before Sep 2020.
Round duration - 180 Minutes
Round difficulty - Medium
Round was held in the morning at 10 am.
Given an undirected graph with 'N' nodes in the form of an adjacency matrix and an integer 'M', determine if it is possible to color the vertices of the graph using at most ...
The problem involves determining if a given graph can be colored with at most 'M' colors without adjacent vertices sharing the same color.
Create a function that takes the adjacency matrix, number of nodes 'N', and maximum number of colors 'M' as input.
Implement a graph coloring algorithm such as backtracking or greedy coloring to check if the graph can be colored with at most 'M' colors.
Check if adjacent vertices have ...
Round duration - 40 Minutes
Round difficulty - Medium
The round was held in the evening
Design and implement a Trie (prefix tree) to perform the following operations:
insert(word)
: Add a string "word" to the Trie.search(word)
: Verify if the string "w...Implement a Trie data structure to insert, search, and check for prefixes in strings.
Create a TrieNode class with children and isEndOfWord attributes.
Implement insert, search, and startsWith methods in the Trie class.
Use a Trie to efficiently store and search for strings based on prefixes.
Example: insert 'apple', search 'apple' returns true, startsWith 'app' returns true, search 'app' returns false.
Round duration - 10 Minutes
Round difficulty - Easy
Was held in the morning around 9 am
Tip 1 : Focus on graphs, most questions are from this topic
Tip 2 : Prepare well about the projects you mention in your resume
Tip 3 : Do not fill the resume with too many things. Keep it simple
Tip 1 : Have 2-3 projects on resume. But also be prepared to answer questions related to the projects.
Tip 2 : Do not mention too many things. Keep it short and simple
Top trending discussions
I applied via Naukri.com and was interviewed before Jul 2020. There were 4 interview rounds.
I appeared for an interview in Oct 2016.
My hobbies include hiking, playing guitar, and cooking.
Hiking: I enjoy exploring nature trails and challenging myself physically.
Playing guitar: I love learning new songs and improving my skills.
Cooking: I like experimenting with different recipes and creating delicious meals.
In 5 years, I see myself as a senior software developer leading a team and working on complex projects.
Leading a team of developers
Working on complex projects
Continuously learning and improving my skills
Contributing to the growth and success of the company
I want to join DELL because of their innovative technology solutions and strong reputation in the industry.
DELL is known for their cutting-edge technology solutions which align with my passion for software development.
I admire DELL's strong reputation in the industry and their commitment to customer satisfaction.
I believe joining DELL will provide me with opportunities for growth and career advancement.
I appeared for an interview in Jan 2017.
I appeared for an interview in May 2017.
String is immutable because it ensures data integrity and allows for efficient memory management.
Immutable strings prevent accidental modification of data.
Immutable strings can be easily shared and reused, improving memory efficiency.
Immutable strings enable efficient string interning and caching.
Immutable strings support thread safety in concurrent environments.
Yes, @RequestParam has a default value if not specified.
If a @RequestParam is not provided in the request, it will use its default value.
The default value can be set using the 'defaultValue' attribute of @RequestParam annotation.
If no default value is specified, the parameter will be considered as required and an exception will be thrown if not provided.
Abstract classes are required to provide a common interface and share code among related classes.
Abstract classes allow for code reusability and promote modular design.
They provide a common interface for a group of related classes.
Abstract classes can define abstract methods that must be implemented by subclasses.
They can also provide default implementations for common methods.
Abstract classes cannot be instantiated, b...
The duration of Samsung Software Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 4 interview experiences
Difficulty level
Duration
based on 34 reviews
Rating in categories
Sales Executive
1.1k
salaries
| ₹1.8 L/yr - ₹5.5 L/yr |
Assistant Manager
1k
salaries
| ₹9.3 L/yr - ₹15.2 L/yr |
Software Engineer
950
salaries
| ₹11.6 L/yr - ₹20 L/yr |
Manager
523
salaries
| ₹15.5 L/yr - ₹28 L/yr |
Area Sales Manager
502
salaries
| ₹12.2 L/yr - ₹22.5 L/yr |
Apple
vivo
OPPO
Dell