Intuit
40+ MGM Sales Interview Questions and Answers
You have been given a sentence ‘S’ in the form of a string and a word ‘W’, you need to find whether the word is present in the given sentence or not. The word must...read more
Given a singly linked list of integers. Your task is to return the head of the reversed linked list.
For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked lis...read more
You are given two numbers, ‘X’ and ‘Y’. Your task is to find the greatest common divisor of the given two numbers.
The Greatest Common Divisor of any two integers is the largest number th...read more
You have been given a singly linked list which may or may not contain a cycle. You are supposed to return the node where the cycle begins (if a cycle exists).
A cycle occurs whe...read more
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 calc...read more
You have been given an integer array/list (ARR) of size N. You have to return an array/list PRODUCT such that PRODUCT[i] is equal to the product of all the elements of ARR except ARR...read more
You have been given an integer array/list(arr) and a number 'Sum'. Find and return the total number of pairs in the array/list which when added, results equal to the 'Sum'.
Note:
G...read more
You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.
Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' r...read more
You have been given an arbitrary binary tree and a node of this tree. You need to find the inorder successor of this node in the tree.
The inorder successor of a node in a binary tree is that no...read more
Implement a SpecialStack Data Structure that supports getMin() in O(1) time and O(1) extra space along with push(), pop(), top(), isEmpty()...read more
You are given an integer 'N'. For a given 'N' x 'N' chessboard, find a way to place 'N' queens such that no queen can attack any other queen on the chessboard.
A queen can be killed when it lies in the ...read more
You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that ...read more
You have been given two singly Linked Lists, where each of them represents a positive number without any leading zeros.
Your task is to add these two numbers and print the summatio...read more
You have been given an array/list ‘ARR’ of integers consisting of ‘N’ integers. You are also given an integer ‘X’. In one operation, you can either remove the leftmost or...read more
You are given an array/list 'ARR' consisting of N integers, which contains elements only in the range 0 to N - 1. Some of the elements may be repeated in 'ARR'. Your task is to find all ...read more
You are given an integer ‘N’, your task is to generate all combinations of well-formed parenthesis having ‘N’ pairs. You are task is to generate all possible valid sets of parenthesis th...read more
You are given two sorted arrays 'A' & 'B' of sizes 'N' & 'M'. You need to find the median of the two arrays when merged. If the total number of elements i.e., N + M is even then the m...read more
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
Design and implement a data structure for Least Recently Used (LRU) cache to support the following operations:
1. get(key) - Return the value of the key if the key exists in the cache, o...read more
You’re given a stack consisting of 'N' integers. Your task is to sort this stack in descending order using recursion.
We can only use the following functions on this stack S.
is_empty(S) : Tests whe...read more
You are given a string 'STR' consisting of lowercase English letters. Your task is to return all permutations of the given string in lexicographically increasing order.
String A is lexic...read more
You are given an arbitrary linked list consisting of 'N' nodes having integer values. You need to perform insertion sort on the linked list and print the final list in sorted order....read more
Q23. How do you design a website which displays say top 1000 products with product rating updating every second?
To design a website displaying top 1000 products with real-time rating updates, use a combination of backend and frontend technologies.
Implement a backend system to fetch and update product ratings from a database or API.
Use a frontend framework like React or Angular to create a dynamic user interface.
Implement pagination or lazy loading to handle the large number of products.
Optimize the website for performance by caching frequently accessed data.
Consider using websockets or...read more
Design a website which displays say top 1000 products with product rating updating every second?
Q25. Implement a specialStack class which should support O(1) push O(1) pop and should return minimum element in the stack in O(1) time
Implement a specialStack class with O(1) push, pop, and minimum element retrieval.
Use an additional stack to keep track of the minimum element at each step.
When pushing an element, compare it with the top of the minimum stack and update if necessary.
When popping an element, also pop from the minimum stack if the popped element is the current minimum.
Q26. Given an array and a number find a pair of integers in the array whose sum is equal to given number.
Find a pair of integers in an array whose sum is equal to a given number.
Iterate through the array and for each element, check if the difference between the given number and the current element exists in the array.
Use a hash set to store the elements of the array for efficient lookup.
Return the pair of integers if found, otherwise return a message indicating no such pair exists.
What is AtomicInteger class in Java?
Write different ways in which you can traverse over a map
Q29. Find lca of 2 nodes in a binary tree (write pseudocode)
The Lowest Common Ancestor (LCA) of two nodes in a binary tree is the deepest node that is a common ancestor of both nodes.
Start from the root node and traverse the tree to find the given nodes.
Store the paths from the root to each node.
Compare the paths to find the last common node, which is the LCA.
Calculate definite integral of a function in limits a to b
Design a bus seat booking design system.
Q32. Given a million points and a new point P find a point closest to P(you can do preprocessing)
Find the point closest to a given point P among a million points.
Preprocess the million points to calculate their distances from P.
Store the distances and corresponding points in a data structure.
Sort the distances in ascending order.
Return the point corresponding to the smallest distance.
Q33. Why the particular technologies were used in the application I developed?
I chose the technologies based on their compatibility with the project requirements and my familiarity with them.
Chose React for front-end development due to its component-based architecture and ease of use
Used Node.js for back-end development because of its non-blocking I/O and scalability
Selected MongoDB as the database for its flexibility with unstructured data and ease of integration
Difference between Web 2.0 and Web 1.0
Explain Collection Hierarchy in Java
Internal functioning of hashmap in Java
Fail fast and Fail Safe Iterator
Difference between C, C++ and Java
Difference between IAAS, PAAS, SAAS
Explain all oops concepts.
Q44. Explain polymorphism and other OOPS concepts
Polymorphism is the ability of an object to take on many forms. Other OOPS concepts include inheritance, encapsulation, and abstraction.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Inheritance allows a class to inherit properties and methods from another class.
Encapsulation is the bundling of data and methods within a class, hiding the internal details.
Abstraction focuses on providing only essential information to the outsid...read more
Find the fastest 3 horses
Q46. what do you think abobut intuit "?
Intuit is a financial software company known for products like QuickBooks and TurboTax.
Intuit is a leading provider of financial software solutions for individuals and businesses.
They are known for products like QuickBooks, TurboTax, and Mint.
Intuit's software helps users manage their finances, taxes, and accounting efficiently.
The company focuses on simplifying financial tasks for users through user-friendly interfaces and automation.
Intuit has a strong reputation for custom...read more
Q47. how agile working methods
Agile working methods involve iterative development, collaboration, flexibility, and continuous improvement.
Agile methods prioritize customer satisfaction through early and continuous delivery of valuable software.
Teams work in short iterations called sprints, focusing on delivering working software frequently.
Collaboration between team members, stakeholders, and customers is essential for success.
Flexibility to adapt to changing requirements and feedback is a key principle o...read more
Q48. Integer to roman number
Convert integer to Roman numeral
Create a mapping of integer values to Roman numeral symbols
Iterate through the mapping to find the largest Roman numeral that fits the integer
Subtract the value of the Roman numeral from the integer and repeat until the integer becomes 0
More about working at Intuit
Interview Process at MGM Sales
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month