Find the count of distinct items in a list
AnswerBot
1y
To find the count of distinct items in a list, use a set to remove duplicates and count the remaining items.
Create a set from the list to remove duplicates
Count the remaining items in the set
Return th...read more
Help your peers!
Add answer anonymously...
Top Ernst & Young Consultant interview questions & answers
Popular interview questions of Consultant
Top HR questions asked in Ernst & Young Consultant
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app