Skip to content

Instantly share code, notes, and snippets.

View NescobarAlopLop's full-sized avatar

George K NescobarAlopLop

View GitHub Profile
@NescobarAlopLop
NescobarAlopLop / 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