Given a triangle with two colors, how do you find the line that separates the two colors?

AnswerBot
9mo
Given a triangle with 2 colors, find the line that separates the two colors.
Iterate through each row of the triangle
Check for adjacent colors in each row to find the separating line
Return the row numb...read more
Help your peers!
Add answer anonymously...
Interview Questions Asked to Software Development Manager at Other Companies
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

