
Asked in Kyndryl
Given three lists arr1, arr2, and arr3, find the common elements using sets. arr1 = [1,5,10,20,40,80,100], arr2 = [6,7,20,80,100], arr3 = [3,4,15,20,30,70,80,120]

AnswerBot
1y
Use sets to find common elements in three lists.
Convert the lists to sets for efficient comparison.
Use the intersection method to find common elements.
Return the common elements as a set or list.

meditativeflash
1y
print(list(set(arr1) & set(arr2) & set(arr3)))
Help your peers!
Add answer anonymously...
Top Senior Data Scientist Interview Questions Asked at Kyndryl
Q. What are the types of regression models? Name them and explain them.
Q. Write an SQL query to print unique values in the dataset and delete the duplicat...read more
Q. Describe how you would split a dataset into training, testing, and validation se...read more
Interview Questions Asked to Senior Data Scientist at Other Companies
Top Skill-Based Questions for Kyndryl Senior Data Scientist
Machine Learning Interview Questions and Answers
250 Questions
SQL Interview Questions and Answers
250 Questions
Algorithms Interview Questions and Answers
250 Questions
Python Interview Questions and Answers
200 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

