7 kyu
Switcheroo
6,941 of 17,902PG1
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 | 22810 |
Total Skips | 706 |
Total Code Submissions | 33480 |
Total Times Completed | 17902 |
JavaScript Completions | 6941 |
C# Completions | 1018 |
Ruby Completions | 573 |
Python Completions | 5831 |
Crystal Completions | 18 |
Haskell Completions | 170 |
Julia Completions | 39 |
Groovy Completions | 97 |
Clojure Completions | 76 |
CoffeeScript Completions | 15 |
C++ Completions | 1042 |
Java Completions | 1841 |
R Completions | 81 |
D Completions | 10 |
OCaml Completions | 41 |
Factor Completions | 13 |
Lua Completions | 94 |
C Completions | 159 |
Rust Completions | 258 |
TypeScript Completions | 167 |
Total Stars | 142 |
% of votes with a positive feedback rating | 94% of 1952 |
Total "Very Satisfied" Votes | 1721 |
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 |