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

Stats:

CreatedOct 7, 2016
PublishedOct 7, 2016
Warriors Trained22810
Total Skips706
Total Code Submissions33480
Total Times Completed17902
JavaScript Completions6941
C# Completions1018
Ruby Completions573
Python Completions5831
Crystal Completions18
Haskell Completions170
Julia Completions39
Groovy Completions97
Clojure Completions76
CoffeeScript Completions15
C++ Completions1042
Java Completions1841
R Completions81
D Completions10
OCaml Completions41
Factor Completions13
Lua Completions94
C Completions159
Rust Completions258
TypeScript Completions167
Total Stars142
% of votes with a positive feedback rating94% of 1952
Total "Very Satisfied" Votes1721
Total "Somewhat Satisfied" Votes209
Total "Not Satisfied" Votes22
Total Rank Assessments14
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • PG1 Avatar
  • SagePtr Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • ParanoidUser Avatar
  • nbeck Avatar
  • user5036852 Avatar
  • rsa Avatar
  • monadius Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
  • Meisterschueler Avatar
  • stellartux Avatar
  • trashy_incel Avatar
  • NicholasS13 Avatar
  • SergeySinyavskiy Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • tri@ Avatar
  • Glinator Avatar
  • fcr-- Avatar
Ad