i
KPMG India
Filter interviews by
Use hashmap to find duplicates in an array of strings
Create a hashmap to store each string as key and count as value
Iterate through the array and check if the string already exists in the hashmap
If it does, increment the count, else add it to the hashmap
Return the strings with count greater than 1 as duplicates
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Create a private static instance variable in the class.
Provide a public static method to access the instance.
Ensure the constructor is private to prevent instantiation from outside the class.
transient and volatile are keywords in Java used for different purposes
transient keyword is used to indicate that a field should not be serialized when converting an object to byte stream
volatile keyword is used to indicate that a variable's value will be modified by different threads
transient keyword is used in serialization, while volatile keyword is used in multithreading
example: transient keyword - private transien...
Comparator and Comparable are interfaces in Java used for sorting objects.
Comparator interface is used to define custom sorting logic for objects.
Comparable interface is used to define natural ordering of objects.
Comparator is used when you want to sort objects based on multiple attributes.
Comparable is used when you want to sort objects based on a single attribute.
Example: Sorting a list of Person objects based on the...
I applied via Naukri.com and was interviewed in Apr 2020. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed before Feb 2021. There were 2 interview rounds.
Cofing round on hackerearth
Case study with algo and db design
What people are saying about KPMG India
I applied via Recruitment Consulltant and was interviewed before Jan 2021. There were 2 interview rounds.
Python coding test
I applied via Campus Placement and was interviewed before Nov 2020. There was 1 interview round.
I applied via Approached by Company and was interviewed before Jun 2021. There were 3 interview rounds.
This is a case study round, you would be given 3 question out of which you will need to solve any 2.
Two question are algoritm based around designing datastructure and matrix problem
One question will be based om designing Database for a given requirement.
I appeared for an interview in May 2023.
posted on 8 Mar 2024
I applied via Campus Placement
based on 1 interview experience
Consultant
8.8k
salaries
| ₹11.3 L/yr - ₹20 L/yr |
Assistant Manager
7.9k
salaries
| ₹16 L/yr - ₹27 L/yr |
Associate Consultant
5.1k
salaries
| ₹7.7 L/yr - ₹13 L/yr |
Analyst
3.8k
salaries
| ₹2.5 L/yr - ₹8 L/yr |
Manager
3.5k
salaries
| ₹22 L/yr - ₹41 L/yr |
Cognizant
PwC
Capgemini