News for hackers. Stuff that matters.
Re:Möbius Printing Helper by vincnetas on Wednesday March 03, 2021 @12:55PM (#26332015)
And if you don't know exactly how many pages there are? Normaly you would just do binary search.
Re:Möbius Printing Helper by jonsen on Wednesday March 03, 2021 @02:48PM (#26333406)
If pages are numbered, the largest page number is still on last page. Just look there.

Or alternatively: The first step of your binary search is to look at the page number on the flip side of page 1 and determine to flip the stack or not.