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

Stats:

CreatedOct 7, 2016
PublishedOct 7, 2016
Warriors Trained22892
Total Skips709
Total Code Submissions33592
Total Times Completed17953
JavaScript Completions6951
C# Completions1021
Ruby Completions573
Python Completions5853
Crystal Completions18
Haskell Completions171
Julia Completions39
Groovy Completions98
Clojure Completions77
CoffeeScript Completions15
C++ Completions1047
Java Completions1845
R Completions81
D Completions10
OCaml Completions41
Factor Completions13
Lua Completions94
C Completions160
Rust Completions260
TypeScript Completions169
Total Stars143
% of votes with a positive feedback rating94% of 1954
Total "Very Satisfied" Votes1723
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