Class: Algorithmable::Cups::TaskScheduleWithColdTime

Inherits:
Object
  • Object
show all
Defined in:
lib/algorithmable/cups/task_shedule_with_coldtime.rb

Instance Method Summary collapse

Instance Method Details

#solve(sequence_of_tasks) ⇒ Object

Task schedule: given a sequence of task like A B C(means 3 different tasks), and a coldtime, which means you need to wait for that much time to start next [same] task. Now—-

Input: string, n Output: the best task-finishing sequence.

eg. input: AAABBB, 2 Output: AB_AB_AB ( “_” represents do nothing and wait)


12
13
# File 'lib/algorithmable/cups/task_shedule_with_coldtime.rb', line 12

def solve(sequence_of_tasks)
end