Skip to content

Eppie/image-hide-and-seek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-hide-and-seek

Test case file format:

  1. One line, containing one integer N, which is the number of images contained in the test case file
  2. N times, the following format:
  3. One line, containing the name of the image to be tested
  4. One line, containing one integer M, which is the number of colors to be found for this image
  5. M lines, each containing three space separated integers, which represent an RGB color.

Here's a sample showing how the algorithm works (Pixels are colored red as they are examined): Alt Text