In this exercise we are required to implement 7 basic 'unsigned integer' arithmetic functions in base-63:
  • to63(x) - converts an integer from base-10 to base-63.
  • to10(x) - converts an integer from base-63 to base-10.
  • add(x,y) - adds two base-63 integers.
  • sub(x,y) - subtracts two base-63 integers.
  • mul(x,y) - multiplies two base-63 integers.
  • div(x,y) - performs integer division between two base-63 integers.
  • mod(x,y) - returns the remainder of division between two base-63 integers.
NOTES:
  • All outputs shall be char-string format.
  • Except for the function 'to63' (which may input numbers), all inputs shall be in char-string format.
  • Use the numerals '0' to '9' for digits 0 to 9, capital letters 'A' to 'Z' for digits 10 to 35, lower case letters 'a' to 'z' for digits 36 to 61 and the symbol '_' (underscore) for digit 62.

Solution Stats

5 Solutions

3 Solvers

Last Solution submitted on Sep 01, 2023

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...