S******1 发帖数: 269 | 1 I had only one phone interview with a giant company which everyone want to
join in. I was so nervous that I didn't get well and get rejected. Here is
the problem:
Given a two dimension byte array, (Note, it is not necessarily a N*N, eg, it
has 3 columns in the 1st row, 6 columns in the 2nd row, etc...), wrote a
serialize function to return a one dimension byte array.
Also wrote a deserialize function; translate the one dimension array to the
original 2 dimension array.
Good Luck to every one! | q****x 发帖数: 7404 | 2 so it's a vector of vector? easy.
it
the
【在 S******1 的大作中提到】 : I had only one phone interview with a giant company which everyone want to : join in. I was so nervous that I didn't get well and get rejected. Here is : the problem: : Given a two dimension byte array, (Note, it is not necessarily a N*N, eg, it : has 3 columns in the 1st row, 6 columns in the 2nd row, etc...), wrote a : serialize function to return a one dimension byte array. : Also wrote a deserialize function; translate the one dimension array to the : original 2 dimension array. : Good Luck to every one!
|
|