Rotate string the answer tallies But shows it is wrong

Back to Problem Solutions forum

DunderMifflin     2016-08-30 13:55:43
User avatar

Any suggestions ? I compared my output properly.And it is exactly the same as expected.

Quandray     2016-09-02 10:52:08
User avatar

Hi,

If I try your code with the sample input data, it outputs 2 lines, when only one is required. Also
the first line starts with 3 bytes of hex low values '\0'
the second line has a byte of hex low values between number & verycomplex
the second line ends with 6 bytes of hex low values

Quandray     2016-09-02 16:30:31
User avatar

This may be a better way of showing what your code is producing

00 00 00 77 68 6F 6D 74 68 65 62 65 6C 6C 74 6F 6C 6C 73 66 6F 72 0A  
\0 \0 \0  w  h  o  m  t  h  e  b  e  l  l  t  o  l  l  s  f  o  r \n

6E 75 6D 62 65 72 00 76 65 72 79 63 6F 6D 70 6C 65 78 00 00 00 00 00 00 0A  
 n  u m  b  e  r  \0  v  e  r  y  c  o  m  p  l  e  x \0 \0 \0 \0 \0 \0 \n
DunderMifflin     2016-09-03 15:21:06
User avatar

Oh! I understand. Thank you so much.

Please login and solve 5 problems to be able to post at forum