
Snapdeal


30+ Snapdeal Interview Questions and Answers for Freshers
Q1. Variation of -----/ Given a dictionary of words and a number n. Find count of all words in dictionary that can be formed by given number n
The question asks to find the count of words in a dictionary that can be formed by a given number.
Iterate through each word in the dictionary
Check if the characters in the word can be formed using the given number
Increment the count if the word can be formed
Q2. Find LCM of all numbers from 1 to n. Give an algorithm, then correctly estimate the time complexity
Algorithm to find LCM of all numbers from 1 to n and its time complexity
Find prime factors of all numbers from 1 to n
For each prime factor, find the highest power it appears in any number from 1 to n
Multiply all prime factors raised to their highest power to get LCM
Time complexity: O(n*log(log(n)))
Q3. Cube with six colors how many different cubes can be obtained?
There are 6 colors, so 6^3 = 216 different cubes can be obtained.
The cube has 6 faces, each of which can be one of 6 colors.
Therefore, there are 6 options for the first face, 6 for the second, and 6 for the third.
To find the total number of possible cubes, we multiply these options together: 6 x 6 x 6 = 216.
Q4. Calculate what single cut bookmyshow should charge from the customers depending on the various factor..... Ans. List the factors like movie of superstar, festival occasion etc.
BookMyShow should charge different prices based on factors like movie of superstar, festival occasion, etc.
Consider the popularity of the movie star
Take into account the demand for tickets during festival occasions
Analyze the competition and market trends
Offer discounts for bulk bookings or loyalty programs
Consider the cost of production and distribution
Adjust prices based on the time of day or week
Use dynamic pricing to optimize revenue
Examples: Charge higher prices for a mo...read more
Q5. SQL vs NoSQL. Why NoSQL
NoSQL databases are flexible, scalable, and can handle large amounts of unstructured data.
NoSQL databases are schema-less, allowing for easy and flexible data modeling.
They can handle large amounts of unstructured data, making them suitable for big data applications.
NoSQL databases are highly scalable and can easily handle high traffic and large user bases.
They provide horizontal scalability by distributing data across multiple servers.
NoSQL databases are often used in real-t...read more
Q6. Why Snapdeal (or whatever company it is)?
Snapdeal is a leading e-commerce company in India with a strong customer base and a wide range of products.
Snapdeal has a large customer base in India, which provides a great opportunity for growth and impact.
The company offers a wide range of products across various categories, catering to diverse customer needs.
Snapdeal has a strong presence in the e-commerce market, competing with other major players.
The company has a user-friendly platform and offers convenient payment op...read more
Q7. Estimate the costs of an Auto-Rickshaw driver. (No time frame)
Estimating the costs of an Auto-Rickshaw driver.
Consider fuel expenses for the auto-rickshaw.
Include maintenance and repair costs.
Factor in license and permit fees.
Account for insurance premiums.
Include daily wages for any helpers or assistants.
Consider miscellaneous expenses like parking fees and tolls.
Q8. Guess the amount of water used in the college?
The amount of water used in the college depends on various factors such as the number of students, staff, and facilities.
The amount of water used in the college varies depending on the size of the college.
The number of students, staff, and facilities also play a significant role in determining the amount of water used.
The college may have water-saving measures in place to reduce water usage.
The amount of water used may also vary depending on the season and weather conditions....read more
Q9. Mean median mode, why median is best
Median is best because it is not affected by outliers and gives a better representation of central tendency.
Median is the middle value in a dataset, which makes it less affected by extreme values or outliers.
It gives a better representation of central tendency as compared to mean, which can be skewed by outliers.
Mode is not always useful as it may not exist or may not be unique in a dataset.
For example, in a dataset of salaries, the median would give a better representation o...read more
Q10. Estimate the revenue of a Dominos outlet
Estimating the revenue of a Dominos outlet
Consider the average number of orders per day
Calculate the average order value
Multiply the average number of orders by the average order value
Take into account any seasonal variations or promotions
Consider the location and population density of the outlet
Analyze the competition in the area
Factor in the operating expenses and profit margin
Q11. whether 899 is prime or not??
No, 899 is not a prime number.
A prime number is a positive integer greater than 1 that has no positive integer divisors other than 1 and itself.
899 can be divided by 29 and 31, so it is not a prime number.
Q12. In a matrix of only 0’s and 1’s, where in each row, there are only 0’s first and then 1’s, find the row with maximum number of 1’s. [Start with right top corner O(m+n) ] [With Code]
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
Q13. If a shipment is changed in between i.e. product is replaced by say, a soap how will you tackle this problem?
Q14. Codes for Post-Order, In-Order and Level-Order Traversal of a binary tree.P.S : These questions were asked to my friends
Codes for Post-Order, In-Order, and Level-Order Traversal of a binary tree.
Post-Order Traversal: Left subtree, Right subtree, Root
In-Order Traversal: Left subtree, Root, Right subtree
Level-Order Traversal: Visit nodes level by level, from left to right
Q15. Find the number of connected components [islands] in a matrix formed with only 0’s and 1’s. [With Code] -----/
Q16. A simple program to check whether a number is palindrome or not
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
Q17. Design a recommendation system as you see on e-commerce sites recommending the items for you to buy. You just have to tell the ideas and design the classes accordingly
Q18. Which e-commerce site you normally purchase from and why?
Q19. Short term & Long term aims in Life
Short term aim is to excel in my role as a business analyst and contribute to the success of the company. Long term aim is to become a senior business analyst and eventually a business consultant.
Short term aim: Excel in my role as a business analyst
Short term aim: Contribute to the success of the company
Long term aim: Become a senior business analyst
Long term aim: Transition into a business consultant role
Q20. Different types of traversals of a tree, with example
Tree traversals are methods used to visit each node in a tree data structure.
Inorder traversal: Visit left subtree, then root, then right subtree. Example: 1. Left -> Root -> Right
Preorder traversal: Visit root, then left subtree, then right subtree. Example: 1. Root -> Left -> Right
Postorder traversal: Visit left subtree, then right subtree, then root. Example: 1. Left -> Right -> Root
Q21. Number of sparrows in IIT KGP
The number of sparrows in IIT KGP is unknown.
The exact number of sparrows in IIT KGP is not available.
There is no specific data on the population of sparrows in IIT KGP.
The number of sparrows in IIT KGP is not documented.
No information is available regarding the count of sparrows in IIT KGP.
Q22. Check if a linked list is palindrome or not
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
Q23. Kth element from the end, of a linked list
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.
Q24. Check whether or not a linked list has a loop
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
Q25. Road length of Ahmedabad
The road length of Ahmedabad is approximately 2,500 kilometers.
Ahmedabad has a well-developed road network.
The road length includes both national highways and city roads.
The road length is constantly expanding due to urban development and infrastructure projects.
Major roads in Ahmedabad include the SG Highway, Ashram Road, and C.G. Road.
Q26. In array find max product of three numbers
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.
Q27. why Snapdeal
Snapdeal is a leading e-commerce platform in India, offering a wide range of products and services.
Snapdeal has a vast product catalog, providing customers with a wide variety of options.
The platform offers competitive prices and frequent discounts, making it attractive for customers.
Snapdeal has a user-friendly interface and a seamless shopping experience.
The company has a strong logistics network, ensuring timely delivery of products.
Snapdeal has a robust customer support s...read more
Q28. Given a dictionary you have to list the anagrams
Q29. Left [or Right] view of a tree
Left view of a tree shows the nodes visible when viewed from the left side.
Left view of a tree is the nodes that are visible when looking at the tree from the left side.
It includes the leftmost node at each level of the tree.
Example: For a tree with root node A and left child B, the left view would be [A, B].
Q30. Find the LCA of a binary tree in place
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 nodes are found in the right subtree, recursively search for th...read more
Q31. In array find sum closest to zero
Q32. Knapsack and coin change problem
Knapsack and coin change problems are classic dynamic programming problems.
Knapsack problem involves maximizing the value of items in a knapsack without exceeding its capacity.
Coin change problem involves finding the minimum number of coins needed to make a certain amount of change.
Both problems can be solved using dynamic programming techniques.
Examples: 0/1 Knapsack, Fractional Knapsack, Coin Change with limited coins.
Q33. Intersection of 2 linked lists
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
Q34. Boundary of a tree
The boundary of a tree refers to the outermost edges of the tree canopy or the perimeter of the tree's root system.
The boundary of a tree is defined by the outermost branches and leaves of the tree canopy.
The root system of a tree also contributes to its boundary, with roots extending outward from the trunk.
The boundary of a tree can be influenced by factors such as soil type, available nutrients, and competition from other plants.
Examples: Oak tree with a wide canopy, Pine t...read more
Q35. Order of execution
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 are also concepts like multithreading or asynchronous exe...read more
Top HR Questions asked in Snapdeal for Freshers
Interview Process at Snapdeal for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

