Add office photos
Engaged Employer

Snapdeal

3.8
based on 638 Reviews
Filter interviews by

100+ Yethi Consulting Interview Questions and Answers

Updated 6 Jul 2024
Popular Designations

Q1. Closest Pair of Points Problem Statement

Given an array containing 'N' points in a plane, your task is to find the distance between the closest pair of points.

Explanation:

The distance between two points, (x1,...read more

Add your answer

Q2. Subtree Check in Binary Trees

You are given two binary trees, T and S. Your task is to determine whether tree S is a subtree of tree T, meaning S must match the structure and node values of some subtree in T.

I...read more

Add your answer

Q3. Largest Rectangular Area In A Histogram

Given an array HEIGHTS of length N, where each element represents the height of a histogram bar and the width of each bar is 1, determine the area of the largest rectangl...read more

Add your answer

Q4. Linked List Cycle Detection

Determine if a given singly linked list of integers forms a cycle.

Explanation:

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

Add your answer
Discover Yethi Consulting interview dos and don'ts from real experiences

Q5. Count Set Bits Problem Statement

Given a positive integer N, find the total number of '1's in the binary representation of all the numbers from 1 to N.

You should return the result modulo 109+7 as the count can...read more

Add your answer

Q6. Inorder Traversal of Binary Tree Without Recursion

Given a Binary Tree consisting of 'N' nodes with integer values, your task is to perform an In-Order traversal of the tree without using recursion.

Input:

The ...read more
Add your answer
Are these interview questions helpful?

Q7. Search in a Row-wise and Column-wise Sorted Matrix Problem Statement

You are given an N * N matrix of integers where each row and each column is sorted in increasing order. Your task is to find the position of ...read more

Add your answer

Q8. LCA of Binary Tree Problem Statement

You are given a binary tree consisting of distinct integers and two nodes, X and Y. Your task is to find and return the Lowest Common Ancestor (LCA) of these two nodes.

The ...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Find Pair with Given Sum in BST

You are provided with a Binary Search Tree (BST) and a target value 'K'. Your task is to determine if there exist two unique elements in the BST such that their sum equals the ta...read more

Add your answer

Q10. Reverse a Linked List Problem Statement

You are given a Singly Linked List of integers. Your task is to reverse the Linked List by changing the links between nodes.

Input:

The first line of input contains a sin...read more
Add your answer

Q11. Count Unique Rectangles in Grid

Given a grid with 'M' rows and 'N' columns, calculate the total number of unique rectangles that can be formed within the grid using its rows and columns.

Input:

The first line c...read more
Add your answer

Q12. Nth Fibonacci Problem Statement

Calculate the Nth term of the Fibonacci series, denoted as F(n), using the formula: F(n) = F(n-1) + F(n-2) where F(1) = 1 and F(2) = 1.

Input:

The first line of each test case co...read more
Add your answer

Q13. Find All Anagrams in a String

Given a string STR and a non-empty string PTR, your task is to identify all starting indices of PTR’s anagrams in STR.

Explanation:

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

Add your answer

Q14. Zig Zag Tree Traversal Problem Statement

Given a binary tree, compute the zigzag level order traversal of the nodes' values. In a zigzag traversal, start at the root node and traverse from left to right at the ...read more

Add your answer

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 Frequent Numbers in a Stream

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

Example:

Input:
ARR ...read more
Add your answer

Q17. Balanced Parentheses Check

Given a string STR consisting solely of the characters '{', '}', '(', ')', '[', and ']', determine whether the parentheses are balanced.

Input:

The first line contains an integer 'T' ...read more
Add your answer

Q18. Vertical Sum in a Binary Tree

Given a binary tree where each node has a positive integer value, compute the vertical sum of the nodes. The vertical sum is defined as the sum of all nodes aligned along the same ...read more

Add your answer

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. Maximum Level Sum in Binary Tree Problem Statement

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 any level in...read more

Add your answer

Q21. Find the Next Greater Number with the Same Set of Digits

Given a string S that represents a number, determine the smallest number that is strictly greater than the original number and has the same set of digits...read more

Add your answer

Q22. Merge Two Sorted Arrays Problem Statement

Given two sorted integer arrays ARR1 and ARR2 of size M and N, respectively, merge them into ARR1 as one sorted array. Assume that ARR1 has a size of M + N to hold all ...read more

Add your answer

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

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

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

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

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

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

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

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

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

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

Q33. 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
Q34. How can you measure 45 minutes using two identical wires?
Add your answer

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

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

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

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

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

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

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

Ans.

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

Add your answer

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

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

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

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

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

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

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

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

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

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

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

Q53. 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
Q54. What is an outer join?
Add your answer

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

Ans.

Check if the decimal of a dynamically generated number is divisible by 3 based on the left side of the previous number.

  • Generate new number by adding 0 or 1 to the left side of previous number

  • Check if the decimal of the new number is divisible by 3

  • Print 'YES' if divisible by 3, 'NO' otherwise

Add your answer

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

Q57. 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
Q58. What is an Inner Join?
Add your answer

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

Q60. 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
Q61. What is TCP/IP?
Add your answer

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

Ans.

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.

Add your answer

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

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

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

Ans.

Find the distinct pair in two arrays where all elements are same except one.

  • Iterate through both arrays and compare elements at each index.

  • If elements are not equal, those are the distinct pair.

  • Handle edge cases like empty arrays or arrays with different lengths.

Add your answer

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

Ans.

XOR solution to find the number occurring odd number of times in an array.

  • Iterate through the array and XOR all elements together.

  • The result will be the number occurring odd number of times.

  • Example: [2, 2, 3, 3, 4] -> XOR of all elements = 4.

Add your answer

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

Add your answer

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

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

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

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

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

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

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

Add your answer

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

Add your answer

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

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

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

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

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

Add your answer

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

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

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

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

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

Ans.

Binary search in rotated sorted array involves finding a target element efficiently.

  • Identify the pivot point where the array is rotated

  • Determine which half of the array the target element lies in

  • Apply binary search in the appropriate half

Add your answer

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

Ans.

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

Add your answer

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

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

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

Ans.

Binary search in a biotonic sorted array involves finding a target value in an array that first increases and then decreases.

  • Start by finding the peak element in the array to determine the increasing and decreasing halves.

  • Perform binary search on both halves separately to find the target value.

  • Example: Array 12345XXXXX2, target value 2. Peak element is 5, search left half (12345) and then right half (5432) for the target value.

Add your answer

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

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

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

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

Q94. What are the demerits in SnapDeal?

Add your answer

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

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

Q97. Circular linkList meeting point and proof

Ans.

Circular linked list meeting point and proof

  • To find the meeting point in a circular linked list, use Floyd's Tortoise and Hare algorithm

  • Start with two pointers, one moving at twice the speed of the other

  • When they meet, reset one pointer to the head and move both at the same speed until they meet again

  • The meeting point is the start of the loop in the linked list

Add your answer

Q98. Check if anagram of a string is palindrome or not

Add your answer

Q99. Short term & Long term aims in Life

Ans.

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

Add your answer

Q100. Sell your cell phone or if you have a ballpen.

Ans.

I'll sell you my ballpen, it writes smoothly and has a comfortable grip.

  • This ballpen writes smoothly and effortlessly

  • It has a comfortable grip that makes writing easy

  • The ink is long-lasting and doesn't smudge

  • It's perfect for everyday use, whether at home, school, or work

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

Interview Process at Yethi Consulting

based on 29 interviews
Interview experience
4.2
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

4.4
 • 430 Interview Questions
3.8
 • 400 Interview Questions
3.9
 • 338 Interview Questions
4.0
 • 194 Interview Questions
3.6
 • 143 Interview Questions
4.5
 • 132 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

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