5 ms·
Small nitpick: you don't need 16GiB, 2^31 bytes is "just" 2GiB. Doesn't contradict your point though.
by poincaredisk 2y ago
Small nitpick: you don't need 16GiB, 2^31 bytes is "just" 2GiB. Doesn't contradict your point though.
- penteract 2y agoEach element of the input array is at least 4 bytes, bringing it to 8GiB.
- javcasas 2y agoNot necessary. But, still, my work laptop from 2020 has 32Gb of memory. So, not that implausible.
- deleted 2y ago[deleted]
- joshka 2y agoSwap in an ArrayList and mock size() and you need a few bytes...