Add office photos
Engaged Employer

Snapdeal

3.9
based on 629 Reviews
Filter interviews by

100+ Interview Questions and Answers

Updated 6 Jul 2024
Popular Designations
Q1. Closest Pair of Points

You are given an array containing 'N' points in the plane. The task is to find out the distance of the closest points.

Note :
Where distance between two points (x1, y1) and (x2, y2) is cal...read more
View 3 more answers
Q2. Check if a binary tree is subtree of another binary tree

Given two binary trees T and S, check whether tree S has exactly the same structure and node values with a subtree of T, i.e., check if tree S is a subtre...read more

View 4 more answers
Q3. Largest Rectangular Area In A Histogram

You have been given an array/list 'HEIGHTS' of length ‘N. 'HEIGHTS' represents the histogram and each element of 'HEIGHTS' represents the height of the histogram bar. Cons...read more

View 5 more answers
Q4. Detect loop in a linked list

You have given a Singly Linked List of integers, determine if it forms a cycle or not.

A cycle occurs when a node's next points back to a previous node in the list. The linked list i...read more

View 4 more answers
Discover null interview dos and don'ts from real experiences
Q5. Count set bits in an integer

You are given a positive integer ‘N’. Your task is to find the total number of ‘1’ in the binary representation of all the numbers from 1 to N.

Since the count of ‘1’ can be huge, yo...read more

View 3 more answers
Q6. Inorder Traversal of Binary Tree without Recursion

You have been given a Binary Tree of 'N' nodes, where the nodes have integer values. Your task is to find the In-Order traversal of the given binary tree.

For e...read more
View 4 more answers
Are these interview questions helpful?
Q7. Search in a row wise and column wise sorted matrix

You are given an N * N matrix of integers where each row and each column is sorted in increasing order. You are given a target integer 'X'. Find the position of...read more

View 4 more answers
Q8. LCA of Binary Tree

You have been given a Binary Tree of distinct integers and two nodes ‘X’ and ‘Y’. You are supposed to return the LCA (Lowest Common Ancestor) of ‘X’ and ‘Y’.

The LCA of ‘X’ and ‘Y’ in the bina...read more

View 3 more answers
Share interview questions and help millions of jobseekers 🌟
Q9. Find a pair with the given sum in a BST

You are given a Binary Search Tree (BST) and a target value ‘K’. Your task is to check if there exist two unique elements in the given BST such that their sum is equal to ...read more

View 5 more answers
Q10. Reverse a linked list
Input Format :
The first line of input contains a single integer T, ...read more
View 3 more answers
Q11. Number of rectangles in N*M grid

You are given an arbitrary grid with M rows and N columns. You have to print the total number of rectangles which can be formed using the rows and columns of this grid. In simple...read more

View 2 more answers
Q12. Nth Fibonacci

Nth term of Fibonacci series F(n), where F(n) is a function, is calculated using the following formula -

 F(n) = F(n-1) + F(n-2), Where, F(1) = F(2) = 1 

Provided N you have to find out the Nth Fib...read more

View 4 more answers
Q13. Find All Anagrams in a String

You have been given a string STR and a non-empty string PTR. Your task is to find all the starting indices of PTR’s anagram in STR.

An anagram of a string is another string which co...read more

View 2 more answers
Q14. Zig Zag Tree Traversal

Given a binary tree, return the zigzag level order traversal of the nodes' values of the given tree. Zigzag traversal means starting from left to right, then right to left for the next lev...read more

View 2 more answers

Q15. You have a deck of 10 cards.You take one card out and put it on table and put next card in the end of deck.You repeat this sequence till all cards are on the table.Sequence formed on the table is 1,2,3,4,5…10. ...

read more
Ans.

Reconstruct original sequence of cards given a specific sequence of cards placed on table.

  • The last card placed on the table must be 10.

  • The second last card placed on the table must be 5 or 6.

  • The first card placed on the table must be either 1 or 2.

  • Use trial and error method to reconstruct the original sequence.

Add your answer
Q16. Find top k (or most frequent) numbers in a stream

You are given an Integer array ‘ARR’ and an Integer ‘K’. Your task is to find the ‘K’ most frequent elements in ‘ARR’. Return the elements sorted in ascending or...read more

View 4 more answers
Q17. Check for balanced parentheses in an expression.

You're given string ‘STR’ consisting solely of “{“, “}”, “(“, “)”, “[“ and “]” . Determine whether the parentheses are balanced.

Input Format:
The first line cont...read more
View 2 more answers
Q18. Vertical Sum in a given Binary Tree

Given a binary tree having a positive integer written on each of its nodes. Your task is to find the vertical sum of node values i.e. the sum of nodes that can be connected by...read more

View 3 more answers

Q19. There is a file which contains ip addresses and corresponding url. Example 192.168.1.15 www.abc.com 10.255.255.40 ----- You have to return the subnet mask of the ip and the url after “www.” Output 192.168.1 abc...

read more
Ans.

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

Add your answer
Q20. Find maximum level sum in Binary Tree

You are given an arbitrary binary tree consisting of N nodes, where each node is associated with a certain value, your task is to find the maximum sum for a level in the tre...read more

View 3 more answers
Q21. Find next greater number with same set of digits

You are given a string S which represents a number. You have to find the smallest number strictly greater than the given number which contains the same set of dig...read more

View 2 more answers
Q22. Puzzle

Three couples are on the vacation.They need to cross the river to reach their hotel. There are 3 rules which are as follows:-
Rule 1:- The boat can only carry two people at a time. If the third person tryi...read more

Add your answer
Q23. Merge two sorted arrays

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to a...read more

View 3 more answers

Q24. How would you design DBMS for Snapdeal’s website’s shoe section. Now if you want to further break it into Sports and Casual Shoe would you break the DB into two or add another entity?

Ans.

For Snapdeal's shoe section, I would design a DBMS with separate entities for Sports and Casual Shoes.

  • Create a main entity for shoes with attributes like brand, size, color, etc.

  • Create separate entities for Sports and Casual Shoes with attributes specific to each category.

  • Link the Sports and Casual Shoe entities to the main Shoe entity using a foreign key.

  • Use indexing and normalization techniques to optimize performance and reduce redundancy.

  • Consider implementing a search fea...read more

Add your answer
Q25. Operating System Question

Print "Hello" and "world" multiple times using two threads in java.
Follow up questions :
-- Why sleep() cannot be used?
– Why have you used synchronized keyword?
– How will a deadlock occ...read more

Add your answer

Q26. You are given two ropes.Each rope takes exactly 1 hour to burn. How will you measure period of 45 minutes

Ans.

Burn one rope from both ends and the other rope from one end.

  • Light one rope from both ends and the other rope from one end.

  • When the first rope burns completely, 30 minutes have passed.

  • Then, immediately light the other end of the second rope.

  • When the second rope burns completely, 15 more minutes have passed.

  • Total time elapsed is 45 minutes.

Add your answer

Q27. There are two sorted arrays. First one is of size m+n containing only ‘first’ m elements. Another one is of size n and contains n elements. Merge these two arrays into the first array of size m+n such that the ...

read more
Ans.

Merge two sorted arrays into one sorted array of larger size

  • Create a new array of size m+n

  • Compare the last elements of both arrays and insert the larger one at the end of the new array

  • Repeat until all elements are merged

  • If any elements are left in the smaller array, insert them at the beginning of the new array

  • Time complexity: O(m+n)

  • Example: arr1=[1,3,5,7,0,0,0], arr2=[2,4,6], output=[1,2,3,4,5,6,7]

Add your answer

Q28. 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

Ans.

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

Add your answer

Q29. Cube with six colors how many different cubes can be obtained?

Ans.

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.

Add your answer

Q30. DNS – Domain name servers : what are they , how do they operate?

Ans.

DNS servers translate domain names into IP addresses to enable communication between devices on the internet.

  • DNS servers act as a phone book for the internet, translating domain names into IP addresses.

  • When a user types a domain name into their browser, the browser sends a request to a DNS server to resolve the domain name into an IP address.

  • DNS servers operate in a hierarchical system, with root servers at the top, followed by top-level domain servers, and then authoritative...read more

Add your answer

Q31. 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.

Ans.

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

Add your answer

Q32. How to eliminate a defective pack (empty) from a bunch of non-empty ones while loading for transportation?

Ans.

Defective pack elimination during transportation loading

  • Inspect each pack before loading

  • Use a checklist to ensure all packs are accounted for

  • Separate defective packs from non-defective ones

  • Label defective packs clearly

  • Dispose of defective packs properly

  • Train personnel on proper handling procedures

Add your answer
Q33. Puzzle

There are three equal rows that consist of three dots each. What you have to do is to draw four straight lines to connect all of the dots. However, the challenge is to avoid lifting the pencil off the pap...read more

Add your answer

Q34. How are you suppose to deal with a customer who is already pissed off with the previous executive that he/she had talked to?

Ans.

When dealing with a customer who is already upset with a previous executive, it is important to empathize, listen actively, apologize if necessary, and offer a solution or escalate the issue if needed.

  • Empathize with the customer and acknowledge their frustration.

  • Listen actively to understand their concerns and let them vent if necessary.

  • Apologize for any inconvenience caused by the previous executive, even if it wasn't your fault.

  • Offer a solution or alternative to address the...read more

View 1 answer

Q35. Lowest Common Ancestor of two nodes in binary tree.I wrote code for this.Then interviewer drew a tree and asked to print stacktrace on it

Ans.

Finding lowest common ancestor of two nodes in binary tree

  • Traverse the tree from root to both nodes and store the paths in separate arrays

  • Compare the paths to find the last common node

  • Return the last common node as the lowest common ancestor

  • Use recursion to traverse the tree efficiently

Add your answer

Q36. Write a code to find if the input date is today or tomorrow based on the current date. If it's not today or tomorrow, output the no of days difference between the input date and the current date.

Ans.

Code to find if input date is today/tomorrow or no of days difference from current date.

  • Get current date using Date() constructor

  • Convert input date to Date object

  • Compare input date with current date to check if it's today/tomorrow

  • If not, calculate the difference in days using getTime() method

  • Output the result accordingly

Add your answer

Q37. Find LCM of all numbers from 1 to n. Give an algorithm, then correctly estimate the time complexity

Ans.

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)))

Add your answer
Q38. Puzzle

How to Measure 45 minutes using two identical wires?

Add your answer

Q39. Explain box model in css, and what is specificity in CSS. What are render-blocking statements?

Ans.

Box model defines how elements are rendered in CSS. Specificity determines which CSS rule applies to an element. Render-blocking statements delay page rendering.

  • Box model includes content, padding, border, and margin.

  • Specificity is calculated based on the number of selectors and their types.

  • Render-blocking statements are CSS or JavaScript files that prevent the page from rendering until they are loaded.

  • Use media queries to optimize rendering and reduce render-blocking stateme...read more

Add your answer

Q40. calculate the top 10 words , which comes frequently in 1 hour time span , on facebook, (dynamically)

Ans.

Calculate top 10 frequently used words on Facebook in 1 hour dynamically.

  • Use Facebook API to fetch data

  • Implement a script to count word frequency

  • Sort the words based on frequency and return top 10

Add your answer

Q41. What is event bubbling, event capturing and its use?

Ans.

Event bubbling and event capturing are two mechanisms in JavaScript that describe the order in which events are handled.

  • Event bubbling is the process where an event is first captured by the innermost element and then propagated to its parent elements.

  • Event capturing is the opposite process where an event is first captured by the outermost element and then propagated to its child elements.

  • Event bubbling is the default behavior in most browsers.

  • Event.stopPropagation() can be us...read more

View 1 answer

Q42. How will you implement infinite scrolling in react js?

Ans.

Implement infinite scrolling in React JS using Intersection Observer API.

  • Use Intersection Observer API to detect when the user has scrolled to the bottom of the page.

  • Fetch new data and append it to the existing data using setState.

  • Use a loading spinner to indicate that new data is being fetched.

  • Add a debounce function to prevent multiple API calls while scrolling.

  • Use a key prop when rendering the list of data to avoid re-rendering of existing elements.

Add your answer
Q43. Puzzle

How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires burn non-uniformly.

Add your answer

Q44. There is four digit number in aabb form and it is a perfect square.Find out the number

Ans.

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.

Add your answer

Q45. A linked list contains loop.Find the length of non looped linked list

Ans.

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.

Add your answer

Q46. 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]

Add your answer

Q47. Tell about Saas( Syntactically Awesome Style Sheets)

Ans.

Saas is a CSS preprocessor that extends the functionality of CSS with variables, mixins, and more.

  • Saas stands for Syntactically Awesome Style Sheets

  • It allows for the use of variables, mixins, and functions in CSS

  • Saas code must be compiled into CSS before it can be used in a web page

  • Saas is often used in conjunction with build tools like Gulp or Webpack

Add your answer

Q48. What are inner join and outer join in sql

Ans.

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 from the right table and matching rows from the left table.

  • Full ou...read more

Add your answer

Q49. Two linked list are merging at a point.Find merging point

Ans.

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

Add your answer

Q50. Why Snapdeal (or whatever company it is)?

Ans.

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

Add your answer

Q51. Write code to find if two objects are equal or not in javascript

Ans.

Code to check equality of two objects in JavaScript

  • Use the JSON.stringify() method to convert the objects into strings

  • Compare the string representations of the objects using the === operator

  • If the strings are equal, the objects are considered equal

View 1 answer

Q52. If a shipment is changed in between i.e. product is replaced by say, a soap how will you tackle this problem?

Add your answer

Q53. Codes for Post-Order, In-Order and Level-Order Traversal of a binary tree.P.S : These questions were asked to my friends

Ans.

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

Add your answer

Q54. What is bind in javascript and write its polyfill

Ans.

Bind creates a new function with a specified 'this' value and arguments.

  • Bind returns a new function with the same body as the original function.

  • The 'this' value of the new function is bound to the first argument passed to bind().

  • The subsequent arguments are passed as arguments to the new function.

  • Polyfill for bind() can be created using call() or apply() methods.

Add your answer

Q55. Create Linked List without using the internal library and provide the functionality of add delete find.

Ans.

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

Add your answer

Q56. Estimate the costs of an Auto-Rickshaw driver. (No time frame)

Ans.

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.

Add your answer

Q57. Walk be through your CV and explain each thing in detail

Ans.

I will explain each section of my CV in detail.

  • Education: I completed my Bachelor's degree in Economics at XYZ University. I focused on macroeconomics and econometrics, conducting research on the impact of fiscal policy on economic growth.

  • Internship: I interned at ABC Company, where I worked closely with the data analysis team. I gained hands-on experience in data collection, cleaning, and analysis using tools like Excel and SQL.

  • Work Experience: I worked as a Junior Analyst a...read more

Add your answer
Q58. DBMS Question

What is Outer join?

Add your answer

Q59. what is the difference between async and defer

Ans.

async loads script while page continues to load, defer loads script after page has loaded

  • async loads scripts asynchronously while page continues to load

  • defer loads scripts after the page has loaded

  • async scripts may not execute in order, while defer scripts do

  • async scripts may cause rendering issues, while defer scripts do not

Add your answer

Q60. How would you tackle a problem from our brand loyal seller?

Ans.

I would listen to their concerns, empathize with their situation, and work with them to find a solution that meets their needs.

  • Listen actively to understand their concerns

  • Acknowledge their loyalty to the brand

  • Empathize with their situation

  • Collaborate with them to find a solution that meets their needs

  • Provide options and alternatives if necessary

  • Follow up to ensure their satisfaction

Add your answer
Q61. DBMS Question

What is Inner Join?

Add your answer

Q62. Guess the amount of water used in the college?

Ans.

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

Add your answer

Q63. Mean median mode, why median is best

Ans.

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

Add your answer

Q64. You are receiving 0/1 in the left side of previous number dynamically and for each insert you have to print whether decimal of new generated number is divisible by 3. Print “YES” or “NO” accordingly

Add your answer
Q65. Computer Network Question

What is TCP/IP?

Add your answer

Q66. Calculate the level sum of the binary tree

Ans.

Calculate the level sum of a binary tree.

  • Traverse the tree level by level using BFS

  • Add the values of nodes at each level

  • Store the level sum in an array

  • Return the array of level sums

Add your answer

Q67. SQL vs NoSQL. Why NoSQL

Ans.

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

Add your answer

Q68. Find the number of connected components [islands] in a matrix formed with only 0’s and 1’s. [With Code] -----/

Add your answer

Q69. You have an sorted array,you have to make a balanced binary search tree from it (only approach) and basic insertion and deletion in BST

Add your answer

Q70. Number of rectangles in MxN matrix

Ans.

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

Add your answer

Q71. Find the total no of the island in a 2d matrix. Working code was required.

Ans.

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.

Add your answer

Q72. If you recieve a damaged product, how will.you deal with customer over the phone?

Ans.

I would apologize for the inconvenience and assure the customer that we will resolve the issue promptly.

  • Apologize for the inconvenience caused

  • Assure the customer that we will resolve the issue

  • Ask for details about the damaged product

  • Offer options for replacement, refund, or repair

  • Provide clear instructions on returning the damaged product

View 1 answer

Q73. A simple program to check whether a number is palindrome or not

Ans.

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

Add your answer

Q74. Write a recursive function for nth fibonacci number!Now make some changes in the same code in order to get O(1) complexity in most cases.(Use Dynamic Programming!)

Add your answer

Q75. Given a 2-d array with sorted rows and columns, write efficient code for searching a number!Puzzle : a glass, a tap given! fill the glass half without the use of any measuring instruments!

Add your answer

Q76. You have given two arrays, all the elements of first array is same as second array except 1, You have to find out distinct pair

Add your answer

Q77. Difference between Process and Thread.6. find the number occurring odd number of time (xor solution).-----/

Add your answer

Q78. How will you decide what data structure should use?

Add your answer

Q79. A sorted Array has been rotated r times to the left. find the minimum in least possible time(O(logn) expected). -----/

Add your answer

Q80. Find square root of a number

Ans.

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.

Add your answer

Q81. Number of rectangles/squares in chess board

Ans.

There are 204 squares and 1296 rectangles on a standard 8x8 chess board.

  • The number of squares can be calculated using the formula n(n+1)(2n+1)/6, where n is the number of rows/columns.

  • The number of rectangles can be calculated using the formula n(n+1)m(m+1)/4, where n and m are the number of rows and columns respectively.

  • For an 8x8 chess board, there are 64 squares of size 1x1, 49 squares of size 2x2, 36 squares of size 3x3, 25 squares of size 4x4, 16 squares of size 5x5, 9 s...read more

Add your answer

Q82. 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

Add your answer

Q83. Number of Umbrella sold in India during rainy seasons

Ans.

The number of umbrellas sold in India during rainy seasons varies depending on factors such as rainfall intensity and geographical location.

  • The demand for umbrellas is generally higher in regions with heavy rainfall.

  • Urban areas with higher population density may have a higher demand for umbrellas.

  • Factors like price, availability, and marketing strategies also influence umbrella sales.

  • Sales data from previous years can provide insights into the average number of umbrellas sold...read more

Add your answer

Q84. Which e-commerce site you normally purchase from and why?

Add your answer

Q85. What is pre-order and post-order?

Ans.

Pre-order and post-order are traversal methods used in binary trees.

  • Pre-order: visit root, left subtree, right subtree

  • Post-order: visit left subtree, right subtree, root

  • Used to traverse binary trees and perform operations on nodes

  • Example: Pre-order traversal of binary tree: A, B, D, E, C, F, G

  • Example: Post-order traversal of binary tree: D, E, B, F, G, C, A

Add your answer

Q86. Estimate the revenue of a Dominos outlet

Ans.

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

Add your answer

Q87. Reverse linked list without recursion

Ans.

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

Add your answer

Q88. whether 899 is prime or not??

Ans.

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.

Add your answer

Q89. How you will improve health of a marketplace

Ans.

By analyzing data, identifying pain points, and implementing solutions to improve user experience and trust.

  • Analyze user behavior and feedback to identify areas of improvement

  • Implement measures to increase transparency and trust, such as user reviews and seller verification

  • Provide resources and support for dispute resolution

  • Encourage diversity and inclusivity in the marketplace to attract a wider range of buyers and sellers

  • Regularly monitor and update policies to ensure compl...read more

Add your answer

Q90. How you will design new customer support system

Ans.

I will design a customer support system that is user-friendly, efficient, and personalized.

  • Conduct research to understand customer needs and preferences

  • Identify common customer issues and develop a knowledge base for quick resolution

  • Implement a ticketing system to track and prioritize customer inquiries

  • Integrate chatbots and AI to provide 24/7 support

  • Train support staff to provide personalized and empathetic service

  • Collect feedback and analyze data to continuously improve the...read more

Add your answer

Q91. Binary Search in Rotated sorted array. i.e. 567891234

Add your answer

Q92. What are tree traversals?

Ans.

Tree traversals are methods of visiting all nodes in a tree data structure.

  • There are three types of tree traversals: in-order, pre-order, and post-order.

  • In-order traversal visits the left subtree, then the root, then the right subtree.

  • Pre-order traversal visits the root, then the left subtree, then the right subtree.

  • Post-order traversal visits the left subtree, then the right subtree, then the root.

  • Tree traversals are commonly used in searching and sorting algorithms.

Add your answer

Q93. Binary Search in Biotonic sorted array. i.e. 12345XXXXX2

Add your answer

Q94. Different types of traversals of a tree, with example

Add your answer

Q95. What are the goals for the future?

Ans.

To excel in my role and contribute to the growth of the company.

  • To learn and master new skills

  • To exceed performance expectations

  • To collaborate with team members and share knowledge

  • To contribute to the company's success through hard work and dedication

Add your answer

Q96. The architecture of the current system.

Ans.

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.

Add your answer

Q97. Check if a linked list is palindrome or not

Ans.

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

Add your answer

Q98. What are the demerits in SnapDeal?

Add your answer

Q99. Kth element from the end, of a linked list

Ans.

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.

Add your answer

Q100. Check whether or not a linked list has a loop

Ans.

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

Add your answer
1
2
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Top HR Questions asked in null

Q1. Basic HR Questions1. Your strengths and weaknesses.2. If your colleagu...read more
Q2. Basic HR Questions1. Tell me something about yourself?2. How were the ...read more
Q3. Why E-commerce (or whatever field you're applying to)?
Q4. Basic HR Questions1. Tell About Yourself2. Family Background3. Why Sna...read more
Q5. Same tell me about yourself

Interview Process at null

based on 8 interviews in the last 1 year
Interview experience
4.4
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.0
 • 596 Interview Questions
4.0
 • 371 Interview Questions
4.4
 • 252 Interview Questions
4.2
 • 237 Interview Questions
4.0
 • 160 Interview Questions
4.1
 • 152 Interview Questions
View all
Top Snapdeal Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter