michelicious11 / Book_scanning

Problem statement for the Online Qualication Round of Hash Code 2020
0 stars 0 forks source link

Parse the document #3

Open michelicious11 opened 3 years ago

michelicious11 commented 3 years ago

Creer une methode qui va :

Each input data set is provided in a plain text le. The le contains only ASCII characters with lines ending with a single '\n' character (also called “UNIX-style” line endings). When multiple numbers are given in one line, they are separated by a single space between each two numbers

michelicious11 commented 3 years ago

UPDATE :

michelicious11 commented 3 years ago

Update 2.0 : Pour etre plus precis

Besoin de variables globales : file (document text) nbr_books nbr_librairies nbr_days every_book (collection de tuples => les tuples representent les livres) library_information (liste de listes de listes avec les informations des librairies)

Besoin de 4 methodes :

Yassotaha commented 3 years ago

We cannot use The tuples because the tuples allow duplicated values in a list, so a solution to that we can use dictonary since it's: 1. dosen't allow duplicated data

  1. it's much easier to use https://www.w3schools.com/python/python_dictionaries.asp