Interview Question
- 0of 0 votes
Answersi'm looking for an algorithm writen in rcursion on java. building a board with x switches so that all the rest of the board is bulbs (say signed as @), each switch has a strength so it make all the bulbs around it change their stats (on-off or the opposite). for example:
- nofar November 22, 2010
@@@@***@@
@@@@*S*@@
@@@@***@@
* -meaning lights on
say switch in some coordinates and strength =1
the algorithm would find the maximum possibility of lights on, not all switches must be on.| Report Duplicate | Flag | PURGE
Java
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
Email me when people comment.
Email me when people comment.
Loading...
An error occurred in subscribing you.
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.