Intuit
90+ 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) 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 an array/list of ‘N’ integers. You are supposed to return the maximum sum of the subsequence with the constraint that no two elements are adjacent in the given ...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 a grid of size N*M. There are two types of people, type ‘A’ and type ‘B’ . You are also given the number of people of each type say ‘countA’ is the number of ‘A’ type persons and ‘countB...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
You have been given a binary tree of integers. Your task is to print the boundary nodes of this binary tree in Anti-Clockwise direction starting from the root node.
NOTE:
The bo...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 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
Given an integer ‘N’ representing the number of pairs of parentheses, Find all the possible combinations of balanced parentheses with the given number of pairs of parentheses.
Note :
Conditi...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
Array given of n size and you have to choose the smallest subarray which contains k distinct values.
You are given ‘n’ cities, some of which are connected by bidirectional roads. You are also given an ‘n x n’ matrix ‘roads’, where if city ‘i’ and ‘j’ are connected by a road then ‘roads...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
You are given a string (STR) of length N.
Your task is to find the longest palindromic substring. If there is more than one palindromic substring with the maximum length, return the...read more
Implement a Stack Data Structure specifically to store integer data using two Queues.
There should be two data members, both being Queues to store the data internally. You may use the inbuilt Q...read more
Q31. 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
You are given a Binary Tree. You are supposed to return the length of the diameter of the tree.
The diameter of a binary tree is the length of the longest path between any two end nodes i...read more
You are given an array/list ARR consisting of N integers. Your task is to find all the distinct triplets present in the array which adds up to a given number K.
An array is said to have a...read more
You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.
A cell is said to be connected to...read more
You are given an array consisting of 'N' distinct positive integers and a number 'K'. Your task is to find the kth largest element in the array.
Example:
Consider the ar...read more
You are given 'N' numbers and you have to play a game using them. In one move you have to pick any two numbers 'A' and 'B' and replace them by their sum 'A+B'. Doing this gives you a penalty of 'A+B'. N...read more
You have been given a singly Linked List in the form of 'L1' -> 'L2' -> 'L3' -> ... 'Ln'. Your task is to rearrange the nodes of this list to make it in the form of 'L1' -> 'Ln' -> 'L2' -> ...read more
Count of ways to distribute N items among 3 people with one person receiving maximum
Given an integer N, the task is to find the total number of ways to distribute N among 3 people such that:
Exac...read more
What will be the output of V in the following program?
int v=2;
v += v++;
Design a website which displays say top 1000 products with product rating updating every second?
Q41. 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.
Q42. 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.
Explain Normal Forms in Database
Explain Indexed in Database
fork() and exec() system call
Retrieve parent ID in the child process.
How to communicate between parent and child.
Illustrate pipes (i...read more
Design a dice such that when the dice is played with a normal dice, the probability of each number coming up, when you roll the two dice together, is equal.
How I test my solution in Cp and in projects.
What is AtomicInteger class in Java?
Q47. Given an array of n elements which contains elements from 0 to n1, with any of these numbers appearing any number of times. Find these repeating numbers in O(n) and using only constant memory space
Find repeating numbers in an array of n elements containing numbers from 0 to n-1 in O(n) time and constant memory space.
Create an empty result array.
Iterate through the array and for each element, take its absolute value and subtract 1 from it.
If the element at the new index is positive, make it negative.
If it is already negative, add the original element to the result array.
Return the result array.
Q48. Given a word and dictionary, write a program to calculate the total number of valid words possible from the given word
Program to calculate total number of valid words possible from a given word and dictionary
Create a hash table of dictionary words
Generate all possible permutations of the given word
Check if each permutation is a valid word in the hash table
Return the count of valid words
Given a matrix of ‘O’ and ‘X’, replace ‘O’ with ‘X’ if surrounded by ‘X’.
Write different ways in which you can traverse over a map
Q51. 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.
Q54. 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.
Q55. 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
I was asked to write a cpp code to illustrate Deadlock.
Q59. For what all purposes is the virtual keyword used in C++?
The virtual keyword is used in C++ for creating virtual functions and implementing polymorphism.
Used to create virtual functions that can be overridden by derived classes
Allows for dynamic binding of functions at runtime
Used in implementing polymorphism
Can be used with multiple inheritance to resolve ambiguity
Example: virtual void functionName() = 0; creates a pure virtual function
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
Q64. Which domain would I be interested to work in? (desktop apps or web apps)
I am interested in working with web apps.
Web apps have a wider reach and are more accessible.
They can be accessed from anywhere with an internet connection.
Web apps are easier to update and maintain.
Examples: Facebook, Google Docs, Amazon
Difference between C, C++ and Java
Difference between IAAS, PAAS, SAAS
Q70. Write a program to find the GCD of a set of numbers. (Euclid’s algorithm)
Program to find GCD of a set of numbers using Euclid's algorithm.
Take two numbers and find their GCD using Euclid's algorithm.
Repeat the process for all numbers in the set.
The final GCD will be the GCD of the entire set.
Use recursion to simplify the code.
If any number is 0, return the other number as GCD.
Q71. Explain the solution to the classical 25 horses and 5 lanes puzzle
The puzzle involves finding the fastest 3 horses out of 25, using only 5 lanes for races.
Divide the horses into groups of 5 and race them, identifying the fastest horse in each group.
Race the fastest horses from each group to identify the overall fastest horse.
Race the second fastest horse from each group to identify the second fastest overall horse.
Race the third fastest horse from each group against the two remaining untested horses to identify the third fastest overall hor...read more
Explain all oops concepts.
Q73. Difference between IAAS, PAAS, SAAS. (cloud computing was listed on my resume)
IAAS, PAAS, and SAAS are different cloud computing models that offer varying levels of control and management to users.
IAAS (Infrastructure as a Service) provides users with access to virtualized computing resources such as servers, storage, and networking. Users have complete control over the infrastructure and are responsible for managing it.
PAAS (Platform as a Service) provides users with a platform to develop, run, and manage applications without having to worry about the...read more
Q74. 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
Q75. Program to delete a node in a singly linked list given only a pointer to the node to be deleted
Program to delete a node in a singly linked list given only a pointer to the node to be deleted
Copy the data from the next node to the current node and delete the next node
Update the pointer of the current node to point to the next node's next node
Handle edge cases where the node to be deleted is the last node in the list
Find the fastest 3 horses
Q77. Design the most optimal data structures for an LRU cache
Design optimal data structures for LRU cache
Use a doubly linked list to keep track of recently used items
Use a hash table to store key-value pairs for quick access
When an item is accessed, move it to the front of the linked list
When the cache is full, remove the least recently used item from the back of the linked list and hash table
Q78. How to measure and ensure to not breach SLA
To measure and ensure not breaching SLA, track performance metrics, set alerts, prioritize tasks, and regularly review and adjust processes.
Track performance metrics such as response time, uptime, and error rates
Set up alerts for when performance metrics approach SLA thresholds
Prioritize tasks based on their impact on SLA compliance
Regularly review and adjust processes to optimize performance and prevent breaches
Q80. How to figure errors before customers report it
Implement automated monitoring and logging to proactively detect errors before customers report them.
Set up automated monitoring tools to track system performance and detect anomalies
Implement logging mechanisms to capture errors and exceptions in real-time
Utilize error tracking software to aggregate and analyze error data
Establish alerts and notifications for critical errors to prompt immediate action
Regularly review error logs and performance metrics to identify patterns an...read more
Q81. Program to insert an element into a sorted linked list
Program to insert an element into a sorted linked list
Traverse the linked list until the correct position is found
Create a new node with the element to be inserted
Adjust the pointers of the previous and next nodes to point to the new node
Handle edge cases such as inserting at the beginning or end of the list
Q82. 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
Q83. How to build low latency systems
To build low latency systems, focus on optimizing code, reducing network latency, using efficient data structures, and leveraging caching.
Optimize code by reducing unnecessary computations and improving algorithms
Reduce network latency by minimizing round trips and using efficient protocols like UDP
Use efficient data structures like arrays and hash maps for quick access to data
Leverage caching to store frequently accessed data in memory for faster retrieval
Q84. Given a string of parenthesis, determine if it forms valid parenthesis or not.
Check if a string of parenthesis is valid or not.
Use a stack to keep track of opening parenthesis.
Iterate through the string and push opening parenthesis onto the stack.
When encountering a closing parenthesis, pop from the stack and check if it matches the corresponding opening parenthesis.
If stack is empty at the end and all parenthesis have been matched, the string is valid.
Q85. Difference between C, C++, and Java
C is a procedural language, C++ is an object-oriented language, and Java is a class-based object-oriented language.
C is a low-level language used for system programming and embedded systems.
C++ is an extension of C with added features like classes, inheritance, and polymorphism.
Java is platform-independent and has automatic memory management through garbage collection.
Java programs run on a virtual machine, while C and C++ programs compile to machine code.
C++ is often used fo...read more
Q86. Difference between Web 2.0 and Web 1.0
Web 2.0 is more interactive and user-generated content-driven, while Web 1.0 was static and read-only.
Web 2.0 allows for social networking and collaboration, while Web 1.0 was primarily informational.
Web 2.0 relies on user-generated content, while Web 1.0 was created by developers and publishers.
Web 2.0 is more dynamic and responsive, while Web 1.0 was static and slow to load.
Examples of Web 2.0 sites include Facebook, Twitter, and Wikipedia, while Web 1.0 sites include early...read more
Q87. How would you define the success metric.
Success metric is a quantifiable measure used to determine the effectiveness of a product or project.
Success metric should be aligned with the overall goals and objectives of the product or project.
It should be specific, measurable, achievable, relevant, and time-bound (SMART).
Examples of success metrics include revenue growth, customer satisfaction scores, user engagement metrics, and market share.
Regularly tracking and analyzing the success metrics can help in making data-d...read more
Q88. How many returns have you prepared
I have prepared over 100 tax returns for individuals and small businesses.
I have experience preparing both individual and small business tax returns
I am familiar with various tax forms such as 1040, Schedule C, and Schedule E
I have worked with clients to maximize deductions and credits
I have experience with tax software such as TurboTax and TaxAct
Q89. 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
Q90. Number of minimum platforms required
Minimum platforms required to avoid train collisions
Calculate the number of trains arriving and departing at each time slot
Find the maximum number of trains present at any given time
The minimum platforms required will be the maximum number of trains present at any given time
Q91. Design event driven schedular
Design an event driven scheduler for managing tasks and events.
Use a message queue system to handle incoming events and tasks.
Implement event listeners to trigger actions based on specific events.
Utilize a scheduling algorithm to prioritize and manage tasks.
Include error handling mechanisms to handle failures gracefully.
Q92. 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
Q93. Implementation of LRU cache
LRU cache is a data structure that stores the most recently used items, discarding the least recently used items when full.
Use a doubly linked list to keep track of the order of items based on their usage.
Use a hash map to quickly access items in the cache.
When a new item is accessed, move it to the front of the linked list. If the cache is full, remove the item at the end of the list.
Q94. normalization in DBMS
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization involves breaking down a table into smaller tables and establishing relationships between them.
There are different levels of normalization, with each level addressing a specific type of data redundancy.
Normalization helps to prevent data inconsistencies and anomalies, and improves database performance.
Example: A customer table can be normalized into a cu...read more
Q95. What is polymorphism?
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).
Example: Inheritance allows a child class to override a method from its parent class, exhibiting polymorphic behavior.
Q96. Valid Binary Search Tree
A valid binary search tree is a binary tree where the left subtree of a node contains only nodes with keys less than the node's key, and the right subtree only nodes with keys greater than the node's key.
Nodes in the left subtree of a node must have keys less than the node's key.
Nodes in the right subtree of a node must have keys greater than the node's key.
In-order traversal of the tree should result in a sorted list of keys.
Q97. Share details of ITIL
ITIL stands for Information Technology Infrastructure Library, a set of best practices for IT service management.
ITIL provides a framework for organizations to plan, deliver, and support IT services.
It consists of five core publications covering different aspects of IT service management.
ITIL processes include incident management, problem management, change management, and more.
ITIL helps organizations improve efficiency, reduce costs, and enhance customer satisfaction.
Certif...read more
Q98. design uber nearest driver
Design a system to match users with the nearest available driver like Uber.
Use geolocation data from both users and drivers to calculate distances.
Implement a matching algorithm to pair users with the nearest available driver.
Consider factors like traffic conditions, driver availability, and user preferences.
Utilize real-time updates to continuously update driver availability and user locations.
Q99. vpc vs subnet ?
VPC is a virtual private cloud that allows you to create a logically isolated section of the AWS cloud. Subnets are segments of a VPC where you can place resources.
VPC is a virtual network dedicated to your AWS account.
Subnets are subdivisions of a VPC where you can place resources like EC2 instances.
VPC provides network-level security and isolation.
Subnets allow you to organize resources within a VPC based on security and operational needs.
More about working at Intuit
Top HR Questions asked in null
Interview Process at null
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month