Suppose A, B, C, D four objects
Respectively, by a 8,11,7,3
The first method:
Each object packet only are 2,3,4,1
If A is the first good points 2,2,2,2
B:3、3、3、2
C:4、3
D:1、1、1
The good points are put into the small box object. This is very troublesome. Multiple cycles to achieve a very troublesome.
The second method:
8 A to the object, divided into eight 1 sequentially into a small block is determined, if the first block filled with small number of groups A 2, it is determined and placed in the second small block, in order to By analogy, the small box filled
Merger involves splitting the array
Relevant information:
1.C # Getting 7.8-- array and Resolution merger
2. How to elegantly combined into an array of a plurality of arrays (de-emphasis)
3.
4.
5.
6.