Home > Net >  Statistical number adjacent repeating element two-dimensional array
Statistical number adjacent repeating element two-dimensional array

Time:09-22

Byte s_color [and]=new byte [and] {
{0 x34, 0 xf1},
{0 x34, 0 xf1},
{0 x34, 0 xf1},
{0 x45, 0 xf0},
{0 x35, 0 x0e},
{0 x35, 0 x0e},
{0 x35, 0 x0e},
{0 x35, 0 x0e},
};
After the statistics of the output to a one dimensional byte array: {xf1 0 x34, 0, 0 x03, 0 x45, 0 xf0, 0 x01, 0 x35, 0 x0e, 0 x04},//the data, the number of repeat
If the repeat number more than 255, repeating elements to recalculate again, how to set? thank you

CodePudding user response:

It's just a matter of a group, it seems,

CodePudding user response:

Only silly one by contrast, as compared with the delete
  •  Tags:  
  • C#
  • Related