Developer intern interview questions shared by candidates
One of the software engineers asked me the question about the colored chameleons bonking into each other question. Basically, there are 15 red, 17 green, and 19 blue chameleons on a desert island. Whenever two chameleons of different colors collide, they both become chameleons of the third color. Can it ever be that all the chameleons on the island are the same color?
Given a string of Rs and Gs, design an algorithm to produce a string with Rs in the front and Gs after that. The number of flips from Rs to Gs or otherwise should be minimum. The number of Rs and Gs in the end need not be same as that in the beginning, however the length of the entire string should be the same.
See Interview Questions for Similar Jobs
- Software Engineer
- Software Engineer Intern
- Software Developer
- Software Engineering Intern
- Software Development Engineer
- Senior Software Engineer
- Software Engineering
- Technology Analyst
- Data Scientist