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

More By Author:

Check out these other kata created by user4279289

Stats:

CreatedJul 5, 2023
PublishedJul 5, 2023
Warriors Trained73
Total Skips3
Total Code Submissions53
Total Times Completed33
BF Completions33
Total Stars0
% of votes with a positive feedback rating100% of 13
Total "Very Satisfied" Votes13
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user4279289 Avatar
  • Madjosz Avatar
Ad