This file contains hidden or 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
import boto3 | |
import datetime | |
from hurry.filesize import size | |
from botocore.exceptions import ClientError | |
from datetime import datetime, timedelta | |
from dateutil.relativedelta import relativedelta | |
location_search = 'us-west-2' | |
#location_search = 'us-east-1' | |
s3_client = boto3.client('s3') |
This file contains hidden or 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
import itertools | |
def valid(solution): | |
col_1 = 0 | |
for row_1 in solution: | |
row_1 = int(row_1) | |
col_2 = 0 | |
for row_2 in solution: | |
row_2 = int(row_2) | |
if col_1 != col_2: # do not compare to itself | |
if col_1 == col_2: # same column? not gonna happend, but I want to leave it here as a guide |