# queues medium

Ten-Minute Haircuts

Every haircut takes exactly m minutes, one customer at a time, straight down the line. 💈

You get the line (front first), the minutes m per cut, and a target customer (present). Print the minute their haircut is DONE.

Example:

Input: line = ["mia", "leo", "kai"], m = 10, target = "kai" Output: 30

kai is third in line, so 3 haircuts of 10 minutes each finish at 3 × 10 = 30.

💡 need a hint?

q-haircut-timer.py🔒 given lines are locked — write your code in between
loading...