Skip to content

Instantly share code, notes, and snippets.

View GeorgeK-zn's full-sized avatar

George K GeorgeK-zn

View GitHub Profile
@GeorgeK-zn
GeorgeK-zn / job_delay.py
Created September 24, 2019 11:34
coding question solution
# in_string = 'ABC' / 'AAA' / 'ABAF'
# delay = 5
# res 3, 13,
from collections import deque
def calc_processing_time(in_str: str, delay: int) -> int:
"""
calculating running time for jobs in in_str with delay between consequent jobs