Geometry nodes, how to "pack" cubes?

seems that you are both trying to do the same thing : Fill object with Random Box packing in Geometry Nodes? - #2 by sozap