Created
February 6, 2011 01:02
-
-
Save jmcarthur/812989 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Map each ant to the number of ants it's fighting. | |
2. For each number, keep it only if all of its opposing neighbors are larger. | |
Example: | |
A A A - | |
A B C D | |
A1 A2 A3 -- | |
A1 B3 C2 D1 | |
A - - - | |
A - - D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment