Skip to main content
6 of 7
deleted 31 characters in body
dana
  • 2.7k
  • 1
  • 17
  • 12

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

x=>{for(int i=35,c;(x[i]=(char)((c=x[i--])<48?c:c==57?65:c==70?48:c+1))<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