i
Snapdeal
Filter interviews by
The diameter of a binary tree is the number of nodes on the longest path between two leaves in the tree.
The diameter of a binary tree can be calculated by finding the longest path between two nodes in the tree.
It is not necessarily the same as the height of the tree.
The diameter can be found by calculating the sum of the heights of the left and right subtrees of each node.
To create a balanced binary search tree from a sorted array, use the middle element as the root and recursively build left and right subtrees.
Start with the middle element of the array as the root of the BST.
Recursively build the left subtree with elements to the left of the middle element.
Recursively build the right subtree with elements to the right of the middle element.
To find the merging point of two linked lists
Traverse both linked lists and find their lengths
Move the pointer of the longer list by the difference in lengths
Traverse both lists simultaneously until they meet at the merging point
The number of rectangles in an MxN matrix can be calculated using a formula.
The formula is (M * (M + 1) * N * (N + 1)) / 4
The matrix can be divided into smaller sub-matrices to count the rectangles
The number of rectangles can also be calculated by counting all possible pairs of rows and columns
The number is 7744.
The number must end in 00 or 44.
The square root of the number must be a whole number.
The only possible number is 7744.
Java function to return subnet mask of IP and URL after www.
Read the file and store IP addresses and URLs in separate arrays
Use regex to extract subnet mask from IP address
Use substring to extract URL after www.
Return subnet mask and URL as separate strings
Reverse a linked list iteratively
Create three pointers: prev, curr, and next
Initialize prev to null and curr to head
Loop through the list and set next to curr's next node
Set curr's next node to prev
Move prev and curr one step forward
Return prev as the new head
To find the length of non-looped linked list, we need to traverse the list and count the number of nodes.
Traverse the linked list using a pointer and count the number of nodes until the end of the list is reached.
If a loop is encountered, break out of the loop and continue counting until the end of the list.
Return the count as the length of the non-looped linked list.
Inner join returns only the matching rows between two tables, while outer join returns all rows from one table and matching rows from the other.
Inner join combines rows from two tables based on a matching column.
Outer join returns all rows from one table and matching rows from the other.
Left outer join returns all rows from the left table and matching rows from the right table.
Right outer join returns all rows fro...
To find square root of a number, use Math.sqrt() function in JavaScript.
Use Math.sqrt() function in JavaScript to find square root of a number.
For example, Math.sqrt(16) will return 4.
If the number is negative, Math.sqrt() will return NaN.
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 658 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
| ₹11.2 L/yr - ₹18.4 L/yr |
Deputy Manager
66
salaries
| ₹5.5 L/yr - ₹12 L/yr |
Senior Software Engineer
51
salaries
| ₹15.6 L/yr - ₹28.7 L/yr |
Flipkart
Amazon
Meesho
eBay