Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Master Mind

The computer has four slots, and each slot will contain a ball that is red, yellow, green or blue. You can take a guess what combination it is. For each color that fits the slot, you get a hit and if you have a color that is in wrong position, but exists, you get a pseudo hit. Given a request and solution, output hits and pseudo hits.

Solutions:

Swift

O(n)

C++

O(n)

Installation

Run make to build and run C++ files and run Swift files. Or you can run .playground file.