i
Snapdeal
Filter interviews by
The coin change problem in dynamic programming involves finding the minimum number of coins needed to make a certain amount of change.
Start by defining the problem - given a set of coin denominations and a target amount, find the minimum number of coins needed to make the target amount.
Use dynamic programming to build up solutions for smaller subproblems and eventually solve the main problem.
Consider the base case...
The answer describes how to check if a linked list is a palindrome or not.
Traverse the linked list and store the values in an array
Compare the elements of the array from both ends to check for palindrome
Alternatively, use two pointers to traverse the linked list, one slow and one fast, and reverse the first half of the list while traversing
To check if a linked list has a loop, we can use the Floyd's cycle-finding algorithm.
Use two pointers, one moving at twice the speed of the other
If there is a loop, the fast pointer will eventually catch up with the slow pointer
If the fast pointer reaches the end of the list, there is no loop
To find the Kth element from the end of a linked list, we can use the two-pointer approach.
Initialize two pointers, 'fast' and 'slow', pointing to the head of the linked list.
Move the 'fast' pointer K steps ahead.
Move both 'fast' and 'slow' pointers one step at a time until 'fast' reaches the end of the linked list.
The 'slow' pointer will be pointing to the Kth element from the end.
Find the row with maximum number of 1's in a matrix of 0's and 1's.
Start from the top right corner of the matrix
If the current element is 1, move left in the same row
If the current element is 0, move down to the next row
Repeat until you reach the bottom left corner of the matrix
Intersection of 2 linked lists
Traverse both lists and compare each node to find the intersection
Use a hash set to store visited nodes and check for intersection
Calculate the length of both lists and adjust the starting point for comparison
A program to check if a number is a palindrome or not.
Convert the number to a string
Reverse the string
Compare the reversed string with the original string
If they are the same, the number is a palindrome
Find the maximum product of three numbers in an array.
Sort the array in ascending order.
Multiply the last three numbers in the sorted array to get the maximum product.
If there are negative numbers in the array, consider multiplying the two smallest negative numbers with the largest positive number.
The Lowest Common Ancestor (LCA) of a binary tree can be found in place using a recursive approach.
Start from the root node and recursively check if both nodes are present in the left and right subtrees.
If one node is found in the left subtree and the other in the right subtree, then the current node is the LCA.
If both nodes are found in the left subtree, recursively search for the LCA in the left subtree.
If both ...
I usually shop on Amazon for its vast selection, competitive prices, and convenient delivery options.
Wide variety of products: From electronics to groceries, Amazon has almost everything.
Competitive pricing: Often find better deals compared to local stores.
Fast shipping: Amazon Prime offers same-day or next-day delivery.
User reviews: Helpful customer feedback aids in making informed decisions.
Easy returns: The ret...
GroupBy in pandas allows for data aggregation and transformation based on specific columns.
Use `df.groupby('column_name')` to group data by a specific column.
Apply aggregation functions like `sum()`, `mean()`, or `count()` after grouping.
Example: `df.groupby('category').sum()` sums values for each category.
You can group by multiple columns: `df.groupby(['col1', 'col2']).mean()`.
Use `agg()` to apply multiple functions: ...
Group by in SQL aggregates data based on specified columns, allowing for summary statistics and analysis.
The GROUP BY clause groups rows that have the same values in specified columns into summary rows.
Common aggregate functions used with GROUP BY include COUNT(), SUM(), AVG(), MAX(), and MIN().
Example: SELECT department, COUNT(*) FROM employees GROUP BY department; returns the number of employees in each department.
Yo...
Reverse a stack without using extra space
Convert Roman numerals to integers using a mapping of values for each symbol.
Create a mapping of Roman numeral symbols to their corresponding integer values.
Iterate through the input Roman numeral string from right to left.
If the current symbol's value is less than the next symbol's value, subtract it from the total. Otherwise, add it to the total.
I applied via Recruitment Consulltant and was interviewed in Dec 2023. There was 1 interview round.
The order of execution refers to the sequence in which instructions or operations are executed in a program.
The order of execution is determined by the programming language and the specific code being executed.
Generally, code is executed line by line from top to bottom.
However, there are exceptions such as loops, conditionals, and function calls that can alter the order of execution.
In some programming languages, there...
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
Fast growth of population
I have 5 years of experience in project management, leading cross-functional teams to successful project completion.
Led cross-functional teams to complete projects on time and within budget
Managed project timelines, resources, and deliverables
Collaborated with stakeholders to ensure project goals were met
Implemented project management best practices to improve efficiency
Experience in creating and executing project plan...
2 medium level leet code question.
Find the pair element from the array
Iterate through the array and use a hashmap to store elements and their counts
Check if the current element's complement exists in the hashmap
Return the pair if found, otherwise return null
I applied via Recruitment Consulltant and was interviewed before Jan 2024. There was 1 interview round.
Simple sql and python basic questions was asked.
I applied via Company Website and was interviewed in Oct 2023. There were 3 interview rounds.
How to work working timing work process salary
The company follows a systematic working process to ensure efficient operations.
The company has defined workflows and procedures for each department.
Tasks are assigned to employees based on their skills and expertise.
There is a clear hierarchy and reporting structure in place.
Regular communication and collaboration among team members.
The company may use software or tools to streamline data entry processes.
Quality check...
Top trending discussions
Some of the top questions asked at the Snapdeal interview -
The duration of Snapdeal interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 33 interview experiences
Difficulty level
Duration
based on 659 reviews
Rating in categories
Assistant Manager
93
salaries
| ₹5 L/yr - ₹11 L/yr |
Senior Executive
84
salaries
| ₹2.8 L/yr - ₹5.8 L/yr |
Category Manager
82
salaries
| ₹6.9 L/yr - ₹23 L/yr |
Deputy Manager
66
salaries
| ₹5.5 L/yr - ₹12 L/yr |
Senior Software Engineer
51
salaries
| ₹12 L/yr - ₹29.5 L/yr |
Flipkart
Amazon
Meesho
eBay