exercism / problem-specifications

Shared metadata for exercism exercises.
MIT License
320 stars 540 forks source link

all-your-base: convert to instructions and introduction #2418

Closed ErikSchierboom closed 3 months ago

MatthijsBlom commented 3 months ago

Convert a number, represented as a sequence of digits in one base, to a sequence of digits in another base.

I have noticed many students being confused about the difference between a number and its representation. Many are unaware (or at least not consciously aware) that there is a difference. This formulation probably doesn't make it any worse, but it also doesn't make it better.

Pedantized problem statement:

Convert a sequence of digits in one base, representing a number, into a sequence of digits in another base, representing the same number.


Suggestion:

-`(1 * 2^5) + (0 * 2^4) + (1 * 2^3) + (0 * 2^2) + (1 * 2^1) + (0 * 2^0)`
+1×2⁵ + 0×2⁴ + 1×2³ + 0×2² + 1×2¹ + 0×2⁰

Et cetera.

Do consider keeping spaces around the ×s.

I personally prefer ⋅ over ×, but imagine a sizable proportion of our audience is not as familiar with that notation.