Sorry, I don't even know what title to give this problem.
I have an array of numbers I call pages.
They are pages I need to print out physically from say a browser.
pagesToPrint = [2,3,4,5,7,8,9,12,14,15,16,17,18,19,20]
Now, what is the problem with just printing 2,3,4,5,7...20
?
When a page or pages are sent to the printer it takes a while to be sent and process. So to speed up the process it is preferable to just print in batches. Say instead of printing 2-2
, 3-3
, 4-4
let's just print 2-5
we can not print 2-20
because it would print pages 6,10,11,13
and so on.
I don't really care in which programming language the answer is but the logic behind it. Ultimately I am trying to fix this problem in AutoHotkey.