7 kyu
Join by newlines
Description:
Given a \x01
separated string (terminated with \0
), replace all occurrences of \x01
with a newline (\n
, ord code 10).
The output does not require a trailing \0
.
Examples
join("\0") -> ""
join('\x01\x01\0') -> "\n\n"
join('Hello\x01World!\0') -> "Hello\nWorld!"
Algorithms
Strings
Similar Kata:
Stats:
Created | Jul 5, 2023 |
Published | Jul 5, 2023 |
Warriors Trained | 73 |
Total Skips | 3 |
Total Code Submissions | 53 |
Total Times Completed | 33 |
BF Completions | 33 |
Total Stars | 0 |
% of votes with a positive feedback rating | 100% of 13 |
Total "Very Satisfied" Votes | 13 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |