A program that allows you to generate and analyze various combinations of four digits. It provides useful information about the count of different types of sequences and performs a verification check. The script utilizes libraries such as itertools
and collections
for efficient computation.
Files • Features • How To Use
- src: the file that implements de solution.
The main features of the application include:
- Enumeration of all possible 4-digit sequences.
- Identification of sequences with repeated elements.
- Extraction of sequences with identical four elements.
- Detection of sequences where two digits occur twice.
- Identification of sequences with one element repeated twice and the other two elements unique.
- Extraction of sequences where one element is repeated three times while the other element remains non-repeating.
- Verification process to ensure consistency between section counts.
To clone and run this application, you'll need Git and Python installed on your computer. From your command line:
...
# Clone this repository
$ git clone https://github.com/bl33h/digitsCombination
# Install dependencies
$ pip install itertools
$ pip install collections
# Open the folder
$ cd src
# Run the app
$ python digitsCombination.py