I think the code for the gasup problem is missing in Elements of Programming Interview - Java Edition. Does anyone have the code somewhere?
(Edit) I found the solutions on the offcial website but I’ll let the post be here so that the Authors know there is a mistake in printing.
Thanks