7 kyu
Switcheroo
6,951 of 17,953PG1
Description:
Given a string made up of letters a, b, and/or c, switch the position of letters a and b (change a to b and vice versa). Leave any incidence of c untouched.
Example:
'acb' --> 'bca'
'aabacbaa' --> 'bbabcabb'
Fundamentals
Strings
Similar Kata:
Stats:
Created | Oct 7, 2016 |
Published | Oct 7, 2016 |
Warriors Trained | 22892 |
Total Skips | 709 |
Total Code Submissions | 33592 |
Total Times Completed | 17953 |
JavaScript Completions | 6951 |
C# Completions | 1021 |
Ruby Completions | 573 |
Python Completions | 5853 |
Crystal Completions | 18 |
Haskell Completions | 171 |
Julia Completions | 39 |
Groovy Completions | 98 |
Clojure Completions | 77 |
CoffeeScript Completions | 15 |
C++ Completions | 1047 |
Java Completions | 1845 |
R Completions | 81 |
D Completions | 10 |
OCaml Completions | 41 |
Factor Completions | 13 |
Lua Completions | 94 |
C Completions | 160 |
Rust Completions | 260 |
TypeScript Completions | 169 |
Total Stars | 143 |
% of votes with a positive feedback rating | 94% of 1954 |
Total "Very Satisfied" Votes | 1723 |
Total "Somewhat Satisfied" Votes | 209 |
Total "Not Satisfied" Votes | 22 |
Total Rank Assessments | 14 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |