Skip to main content
5 of 7
added 3 characters in body
dana
  • 2.7k
  • 1
  • 17
  • 12

C# (Visual C# Interactive Compiler), 87 bytes

x=>{int i=35,c;do{c=((c=x[i])<48?c:c==57?65:c==70?48:c+1);x[i--]=(char)c;}while(c<49);} 

Try it online!

Anonymous function that takes a char[] as input and outputs by modifying an argument.

Input is scanned from right to left and replaced using the following rules.

  • The - character is ignored and processing continues
  • The F character is converted to 0 and processing continues
  • The 9 character is converted to A and processing stops
  • The characters A-E and 0-8 are incremented by 1 and processing stops
dana
  • 2.7k
  • 1
  • 17
  • 12