6 kyu
Data Reverse
1,306 of 25,129sataman
Description:
A stream of data is received and needs to be reversed.
Each segment is 8 bits long, meaning the order of these segments needs to be reversed, for example:
11111111 00000000 00001111 10101010
(byte1) (byte2) (byte3) (byte4)
should become:
10101010 00001111 00000000 11111111
(byte4) (byte3) (byte2) (byte1)
The total number of bits will always be a multiple of 8.
The data is given in an array as such:
[1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,1,0,1,0]
Note: In the C and NASM languages you are given the third parameter which is the number of segment blocks.
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jan 18, 2016 |
Published | Jan 19, 2016 |
Warriors Trained | 44688 |
Total Skips | 8380 |
Total Code Submissions | 80978 |
Total Times Completed | 25129 |
C# Completions | 1306 |
Python Completions | 7782 |
Java Completions | 2550 |
Haskell Completions | 342 |
Ruby Completions | 659 |
JavaScript Completions | 12237 |
NASM Completions | 33 |
C Completions | 547 |
COBOL Completions | 5 |
Total Stars | 523 |
% of votes with a positive feedback rating | 92% of 2471 |
Total "Very Satisfied" Votes | 2132 |
Total "Somewhat Satisfied" Votes | 307 |
Total "Not Satisfied" Votes | 32 |
Total Rank Assessments | 40 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |