Separate out 0's, 1's, and 2's in an array
AnswerBot
1y
Separate out 0's, 1's, and 2's in an array
Create three variables to count the number of 0's, 1's, and 2's in the array
Loop through the array and increment the respective variable for each occurrence
Cr...read more
Help your peers!
Add answer anonymously...
Top Paytm Technical Lead interview questions & answers
Popular interview questions of Technical Lead
Top HR questions asked in Paytm Technical Lead
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