Packet issue

Disclaimer: This blog seriousness nonsense, the article content can not reference. This article is a blogger original article, shall not be reproduced without the bloggers allowed. Pictures are resources for learning to share use for reference purposes only, not for commercial behavior of the blog used. Communicators conceited. If this blog article written infringe your rights, please reach out to leave a message, we will promptly remove content. https://blog.csdn.net/BuladeMian/article/details/90755643

 

 

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.

 

 

Guess you like

Origin blog.csdn.net/BuladeMian/article/details/90755643