Add office photos
Intuit logo
Employer?
Claim Account for FREE

Intuit

3.5
based on 164 Reviews
Video summary
Filter interviews by
Designation
Fresher
Skills
Clear (1)

20+ Intuit Interview Questions and Answers for Freshers

Updated 20 Dec 2024
Popular Designations

Q1. Word Presence in Sentence

Determine if a given word 'W' is present in the sentence 'S' as a complete word. The word should not merely be a substring of another word.

Input:

The first line contains an integer 'T...read more
Ans.

Check if a given word is present in a sentence as a complete word.

  • Split the sentence into words using spaces as delimiter.

  • Check if the given word matches any of the words in the sentence.

  • Ensure the word is not just a substring of another word in the sentence.

Add your answer
right arrow

Q2. Detect the First Node of the Loop in a Singly Linked List

You are provided with a singly linked list that may contain a cycle. Your task is to return the node where the cycle begins, if such a cycle exists.

A c...read more

Ans.

To detect the first node of a loop in a singly linked list, we can use Floyd's Cycle Detection Algorithm.

  • Use Floyd's Cycle Detection Algorithm to detect the cycle in the linked list.

  • Once the cycle is detected, find the starting node of the cycle using two pointers approach.

  • The first pointer moves one step at a time while the second pointer moves two steps at a time until they meet at the starting node of the cycle.

Add your answer
right arrow

Q3. Reverse Linked List Problem Statement

Given a singly linked list of integers, return the head of the reversed linked list.

Example:

Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more
Ans.

Reverse a singly linked list of integers and return the head of the reversed linked list.

  • Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.

  • Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.

  • Update the head of the reversed linked list as the last node encountered during the reversal process.

Add your answer
right arrow

Q4. N Queens Problem

Given an integer N, find all possible placements of N queens on an N x N chessboard such that no two queens threaten each other.

Explanation:

A queen can attack another queen if they are in the...read more

Ans.

The N Queens Problem involves finding all possible placements of N queens on an N x N chessboard without threatening each other.

  • Use backtracking algorithm to explore all possible configurations.

  • Keep track of rows, columns, and diagonals to ensure queens do not threaten each other.

  • Generate all valid configurations and print them out.

Add your answer
right arrow
Discover Intuit interview dos and don'ts from real experiences

Q5. Sort 0 1 2 Problem Statement

Given an integer array arr of size 'N' containing only 0s, 1s, and 2s, write an algorithm to sort the array.

Input:

The first line contains an integer 'T' representing the number of...read more
Ans.

Sort an array of 0s, 1s, and 2s in linear time complexity using a single scan.

  • Use three pointers to keep track of the positions of 0s, 1s, and 2s in the array.

  • Iterate through the array and swap elements based on their values and the pointers.

  • After a single scan, the array will be sorted in-place with 0s, 1s, and 2s in order.

Add your answer
right arrow

Q6. Inorder Successor in a Binary Tree

Find the inorder successor of a given node in a binary tree. The inorder successor is the node that appears immediately after the given node during an inorder traversal. If th...read more

Ans.

Find the inorder successor of a given node in a binary tree.

  • Perform an inorder traversal of the binary tree to find the successor node

  • If the given node has a right child, the successor is the leftmost node in the right subtree

  • If the given node does not have a right child, backtrack to find the ancestor whose left child is the given node

Add your answer
right arrow
Are these interview questions helpful?

Q7. Add Two Numbers as Linked Lists

You are given two singly linked lists, where each list represents a positive number without any leading zeros.

Your task is to add these two numbers and return the sum as a linke...read more

Ans.

Add two numbers represented as linked lists and return the sum as a linked list.

  • Traverse both linked lists simultaneously while keeping track of carry from previous sum

  • Handle cases where one linked list is longer than the other by padding with zeros

  • Create a new linked list to store the sum of the two numbers

Add your answer
right arrow

Q8. Sort a Stack Problem Statement

You are provided with a stack consisting of 'N' integers. The goal is to sort this stack in descending order by utilizing recursion.

Allowed Stack Operations:

is_empty(S) : Check ...read more
Ans.

Sort a stack in descending order using recursion without using loop constructs.

  • Implement a recursive function to sort the stack in descending order.

  • Use the provided stack operations to manipulate the stack.

  • Recursively pop elements from the stack, sort them, and push them back in descending order.

  • Handle base cases such as an empty stack or a single element stack.

  • Ensure the stack is sorted in descending order after the recursive calls.

  • Avoid using loop constructs like while or f...read more

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. Product Of Array Except Self Problem Statement

You are provided with an integer array ARR of size N. You need to return an array PRODUCT such that PRODUCT[i] equals the product of all the elements of ARR except...read more

Ans.

The problem requires returning an array where each element is the product of all elements in the input array except itself.

  • Iterate through the array twice to calculate the product of all elements to the left and right of each element.

  • Use two arrays to store the products to the left and right of each element.

  • Multiply the corresponding elements from the left and right arrays to get the final product array.

  • Handle integer overflow by taking modulo MOD = 10^9 + 7.

  • To solve with O(1...read more

Add your answer
right arrow

Q10. Generate All Parentheses Combinations

Given an integer N, your task is to create all possible valid parentheses configurations that are well-formed using N pairs. A sequence of parentheses is considered well-fo...read more

Ans.

Generate all valid parentheses combinations for N pairs.

  • Use backtracking to generate all possible combinations of parentheses.

  • Keep track of the number of open and close parentheses used.

  • Add '(' if there are remaining open parentheses, and add ')' if there are remaining close parentheses.

  • Stop when the length of the generated string is 2*N.

Add your answer
right arrow

Q11. Minimum Number Of Operations To Reach X Problem Statement

Given an array ARR of 'N' integers and an integer 'X', determine the minimum number of operations required to make the sum of removed elements from eith...read more

Ans.

Given an array of integers and a target sum, find the minimum number of operations to make the sum of removed elements equal to the target.

  • Iterate from both ends of the array, removing elements until the sum matches the target

  • Use a two-pointer approach to efficiently find the minimum number of operations

  • If achieving the target sum is not possible, return -1

Add your answer
right arrow

Q12. Grid Satisfaction Problem

In this problem, you are given a grid of size N*M containing two types of people: type ‘A’ and type ‘B’. You are given the number of people of each type: 'countA' denotes the number of...read more

Ans.

Given a grid with type A and B people, maximize satisfaction based on neighbors.

  • Start with type A people for maximum satisfaction

  • Optimally place people to maximize satisfaction

  • Consider satisfaction levels for each type of person and their neighbors

Add your answer
right arrow

Q13. Problem Statement: Find the Number of States

You are given ‘n’ cities, some of which are connected by bidirectional roads. You also have an ‘n x n’ matrix ‘roads’, where if city ‘i’ and city ‘j’ are connected b...read more

Ans.

Find the number of states of cities connected by roads in a matrix.

  • Identify connected cities using DFS or Union-Find algorithm

  • Count the number of disjoint sets to determine the number of states

  • Handle self-connections of cities by setting roads[i][i] = 1

Add your answer
right arrow

Q14. Binary Tree Diameter Problem Statement

You are given a Binary Tree, and you need to determine the length of the diameter of the tree.

The diameter of a binary tree is the length of the longest path between any ...read more

Ans.

The task is to find the diameter of a binary tree, which is the longest path between any two nodes in the tree.

  • Traverse the tree to find the longest path between two nodes.

  • Keep track of the maximum diameter found during traversal.

  • The diameter may or may not pass through the root node.

  • Consider the height of the left and right subtrees to calculate the diameter.

Add your answer
right arrow

Q15. Triplets with Given Sum Problem

Given an array or list ARR consisting of N integers, your task is to identify all distinct triplets within the array that sum up to a specified number K.

Explanation:

A triplet i...read more

Ans.

Identify all distinct triplets within an array that sum up to a specified number.

  • Iterate through the array and use nested loops to find all possible triplets.

  • Use a set to store unique triplets and check if the sum equals the target.

  • Handle edge cases like duplicate elements and no valid triplets.

  • Return the triplets as space-separated integers or -1 if no triplets exist.

Add your answer
right arrow

Q16. Number of Islands Problem Statement

You are provided with a 2-dimensional matrix having N rows and M columns, containing only 1s (land) and 0s (water). Your goal is to determine the number of islands in this ma...read more

Ans.

Count the number of islands in a 2D matrix of 1s and 0s.

  • Use Depth First Search (DFS) or Breadth First Search (BFS) to traverse the matrix and identify connected groups of 1s.

  • Maintain a visited array to keep track of visited cells to avoid redundant traversal.

  • Increment the island count each time a new island is encountered.

  • Consider edge cases like boundary conditions and handling of diagonals while traversing.

  • Handle the input matrix efficiently to optimize the solution.

  • Example...read more

Add your answer
right arrow

Q17. Longest Palindromic Substring Problem Statement

You are provided with a string STR of length N. The goal is to identify the longest palindromic substring within this string. In cases where multiple palindromic ...read more

Ans.

Given a string, find the longest palindromic substring, prioritizing the one with the smallest start index.

  • Iterate through the string and expand around each character to find palindromes

  • Keep track of the longest palindrome found and its starting index

  • Return the longest palindromic substring with the smallest start index

Add your answer
right arrow

Q18. Stack using Two Queues Problem Statement

Develop a Stack Data Structure to store integer values using two Queues internally.

Your stack implementation should provide these public functions:

Explanation:

1. Cons...read more
Ans.

Implement a stack using two queues to store integer values.

  • Use two queues to simulate stack operations efficiently.

  • Maintain the top element in one of the queues for easy access.

  • Ensure proper handling of edge cases like empty stack.

  • Example: Push elements onto one queue, then dequeue and enqueue to the other queue for pop operation.

  • Example: Use a flag to track the top element and update it accordingly.

Add your answer
right arrow

Q19. Max Game Minimum Penalty Problem

In this game, you are given a collection of 'N' numbers. The objective is to minimize the total penalty incurred while playing by following these steps:

  1. Select any two numbers,...read more
Ans.

The objective is to minimize total penalty by selecting two numbers, summing them, and accumulating the penalty until only one number remains.

  • Iteratively select two numbers, sum them, and accumulate the penalty until only one number remains.

  • Choose the two smallest numbers to minimize the penalty.

  • Repeat the process until only one number remains to find the minimum possible penalty.

Add your answer
right arrow
Q20. Given an array of size n, how would you find the smallest subarray that contains k distinct values?
Ans.

Use sliding window technique to find smallest subarray with k distinct values.

  • Use a sliding window approach to keep track of the subarray with k distinct values.

  • Use a hashmap to store the frequency of each element in the window.

  • Slide the window to the right until the hashmap contains k distinct elements.

  • Shrink the window from the left while maintaining k distinct elements.

  • Update the minimum subarray length as you slide the window.

  • Return the smallest subarray length found.

  • Exam...read more

Add your answer
right arrow

Q21. Kth Largest Element Problem

Given an array containing N distinct positive integers and a number K, determine the Kth largest element in the array.

Example:

Input:
N = 6, K = 3, array = [2, 1, 5, 6, 3, 8]
Output...read more
Ans.

Find the Kth largest element in an array of distinct positive integers.

  • Sort the array in non-increasing order and return the Kth element.

  • Use a priority queue or quick select algorithm for efficient solution.

  • Handle constraints like array size and element values properly.

  • Ensure all elements in the array are distinct for accurate results.

Add your answer
right arrow

Q22. Rearrange Linked List Problem Statement

Given a singly linked list in the form 'L1' -> 'L2' -> 'L3' -> ... 'Ln', your task is to rearrange the nodes to the form 'L1' -> 'Ln' -> 'L2' -> 'Ln-1', etc. You must not...read more

Ans.

Rearrange the nodes of a singly linked list in a specific order without altering the data of the nodes.

  • Use two pointers to split the linked list into two halves, reverse the second half, and then merge the two halves alternately.

  • Ensure to handle cases where the number of nodes is odd or even separately.

  • Time complexity: O(N), Space complexity: O(1)

  • Example: Input: 1 -> 2 -> 3 -> 4 -> 5 -> NULL, Output: 1 -> 5 -> 2 -> 4 -> 3 -> NULL

Add your answer
right arrow

Q23. AWS technologies on which you worked

Ans.

I have worked on AWS technologies such as EC2, S3, Lambda, and RDS.

  • EC2 (Elastic Compute Cloud)

  • S3 (Simple Storage Service)

  • Lambda

  • RDS (Relational Database Service)

Add your answer
right arrow

Q24. What is polymorphism?

Ans.

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.

Add your answer
right arrow

Q25. Write code for stack operations

Ans.

Code for stack operations in C++ using array

  • Declare an array to store stack elements

  • Implement push operation to add elements to the top of the stack

  • Implement pop operation to remove elements from the top of the stack

  • Implement peek operation to view the top element without removing it

Add your answer
right arrow

Q26. HLD of project worked previously

Ans.

Designed a high-level architecture for a web-based project using microservices and RESTful APIs.

  • Utilized microservices architecture to break down the project into smaller, independent services.

  • Implemented RESTful APIs for communication between services.

  • Used a service discovery mechanism like Eureka or Consul for dynamic service registration and discovery.

  • Ensured scalability and fault tolerance by incorporating load balancing and circuit breaker patterns.

  • Secured communication ...read more

Add your answer
right arrow

Q27. normalization in DBMS

Ans.

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

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

Interview Process at Intuit for Freshers

based on 9 interviews
Interview experience
3.9
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

Paytm Logo
3.3
 • 459 Interview Questions
NTT Data Logo
3.9
 • 349 Interview Questions
Asian Paints Logo
4.0
 • 248 Interview Questions
CBRE Logo
4.2
 • 165 Interview Questions
Samvardhana Motherson Group Logo
3.7
 • 142 Interview Questions
Ola Electric Mobility  Logo
3.3
 • 138 Interview Questions
View all
Recently Viewed
JOBS
SoftAge Information Technology
No Jobs
INTERVIEWS
Impetus Technologies
No Interviews
SALARIES
Impetus Technologies
JOBS
AbbVie Inc.
No Jobs
INTERVIEWS
Impetus Technologies
No Interviews
JOBS
Titan Company
No Jobs
INTERVIEWS
Impetus Technologies
No Interviews
INTERVIEWS
Impetus Technologies
No Interviews
INTERVIEWS
Impetus Technologies
No Interviews
INTERVIEWS
Impetus Technologies
80 top interview questions
Top Intuit Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 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