(seed = 873095)
Consider an object of type MysteryBox that stores N items of type int
in an array items[] of length N.
public class MysteryBox {
private int N;
private int[] items;
...
}
Using the 64-bit memory cost model from the lecture, how many bytes does it use as a function of N?
Include all memory referenced by the object and use tilde notation to simplify your answer.
For example, enter ~ 4N if the number of bytes as a function of N is 4N + 32.