Amadeus
10+ Indigo Paints Interview Questions and Answers
Q1. Matrix Transformation Problem Statement
Given a 2-dimensional matrix of size NxN containing 0s and 1s, the task is to modify the matrix such that, if an element is 1, set its entire row and column to 1. In the ...read more
Modify a matrix by setting entire row and column to 1 if an element is 1, then count the number of 1s.
Iterate through the matrix to find elements with value 1
Use two arrays to keep track of rows and columns to be modified
Update the matrix by setting entire row and column to 1 if an element is 1
Count the number of 1s in the modified matrix
Q2. 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
Given a sorted N * N matrix, find the position of a target integer X.
Iterate over each row and column to search for the target integer
Utilize the sorted nature of the matrix to optimize the search process
Return the position of the target integer if found, else return -1 -1
Q3. Sort Array of Strings Problem Statement
Given an array of strings ARRSTR[]
of size N
, and a character C
, your task is to sort the ARRSTR[]
array according to a new alphabetical order that starts with the given ...read more
Sort an array of strings based on a new alphabetical order starting with a given character.
Iterate through the array of strings and compare each string with the given character to determine the new order.
Implement a custom comparator function to sort the strings based on the new alphabetical order.
Use built-in sorting functions in programming languages like Python, Java, or C++ to efficiently sort the array.
Q4. Euler’s Totient Function Problem Statement
Given an integer N
, your task is to determine the count of integers between 1 and N
(inclusive) that are coprime to N
.
Input:
The first line contains an integer 'T' de...read more
Euler's Totient Function calculates count of integers coprime to N between 1 and N.
Implement Euler's Totient Function to calculate count of coprime integers to N.
Use the formula: phi(N) = N * (1 - 1/p1) * (1 - 1/p2) * ... * (1 - 1/pk) where p1, p2, ..., pk are prime factors of N.
Example: For N = 9, phi(9) = 9 * (1 - 1/3) = 6.
The pillars of OOP are Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation restricts access to certain components of an object, protecting its integrity.
Abstraction hides complex implementation details and only shows the necessary features.
Polymorphism allows objects to be treated as instances of their parent class, enabling flexibility.
Q6. Prime Numbers Identification
Given a positive integer N
, your task is to identify all prime numbers less than or equal to N
.
Explanation:
A prime number is a natural number greater than 1 that has no positive d...read more
Q7. Reverse Words in a String: Problem Statement
You are given a string of length N
. Your task is to reverse the string word by word. The input may contain multiple spaces between words and may have leading or trai...read more
Q8. Spiral Matrix Problem Statement
You are given a N x M
matrix of integers. Your task is to return the spiral path of the matrix elements.
Input
The first line contains an integer 'T' which denotes the number of ...read more
Q9. Rearrange The Array Problem Statement
You are given an array/list 'NUM' of integers. Rearrange the elements of 'NUM' such that no two adjacent elements are the same in the rearranged array.
Example:
Input:
NUM[...read more
Q10. A father and a son are in a car. car crashes. father dies. son taken to hospital. doctor refuses to operate saying “That’s my son!”. How?
The doctor is the son's mother.
The doctor is a woman, who is the mother of the son.
The question challenges gender stereotypes.
The answer highlights the need for diversity and inclusivity in all fields.
Similar scenarios can occur in other professions where assumptions are made based on gender.
Q11. 6 eggs 1 basket. 6 people. each pick one egg. still the basket contains 1 egg. how?
One person picked the egg with another egg inside.
One of the eggs had another egg inside
One person picked the egg with another egg inside
The basket still contains 1 egg because the egg with another egg inside was picked
Q12. one mother has 2 sons born at the same hour, same day, same year but they r not twins. how?
The two sons were born in different time zones.
The mother gave birth to the first son in one time zone and then traveled to another time zone where she gave birth to the second son.
The time difference between the two time zones is such that the two sons were born at the same hour, same day, same year.
For example, if the first son was born at 11 pm on January 1st in New York, and the mother traveled to Los Angeles where the time is 3 hours behind, the second son would be born ...read more
Q13. common questions like
The question is about the common header file in C++.
The
header file is used for input/output operations in C++. It provides classes like cin and cout for reading and writing data.
It also includes classes for file input/output operations like ifstream and ofstream.
The header file can be included in a C++ program using the #include directive.
Q14. What is SRS, BRD
SRS stands for Software Requirements Specification and BRD stands for Business Requirements Document.
SRS is a document that outlines the functional and non-functional requirements of a software system.
BRD is a document that outlines the business requirements of a project.
SRS is used by developers and testers to understand what needs to be built and tested.
BRD is used by project managers and stakeholders to understand the business goals and objectives of a project.
SRS includes...read more
Top HR Questions asked in Indigo Paints
Interview Process at Indigo Paints
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month