(ArrayList<Box> boxes)
| 6 | public class Question { |
| 7 | |
| 8 | public static int stackHeight(ArrayList<Box> boxes) { |
| 9 | if (boxes == null) { |
| 10 | return 0; |
| 11 | } |
| 12 | int h = 0; |
| 13 | for (Box b : boxes) { |
| 14 | h += b.height; |
| 15 | } |
| 16 | return h; |
| 17 | } |
| 18 | |
| 19 | public static ArrayList<Box> createStackR(Box[] boxes, Box bottom) { |
| 20 | int max_height = 0; |
no outgoing calls
no test coverage detected