Playing with the TypeScript type system.
Conversion from binary to decimal
Usually, addition in a type system uses a tuple type, but there was a limitation that it could not calculate more than 10000.
However, since TypeScript 4.8, it has become easier to convert strings to numbers, and I saw this post. I tried to imitate it and tried another way of addition by string type.
Efficient, general-purpose sorting algorithm. See also