|
|
|
@ -6,11 +6,11 @@ Write a function that takes a `string` number and its `string` base in parameter
|
|
|
|
|
|
|
|
|
|
If the base is not valid it returns `0`. |
|
|
|
|
|
|
|
|
|
- Validity rules for a base : |
|
|
|
|
Validity rules for a base : |
|
|
|
|
|
|
|
|
|
- A base must contain at least 2 characters. |
|
|
|
|
- Each character of a base must be unique. |
|
|
|
|
- A base should not contain `+` or `-` characters. |
|
|
|
|
- A base must contain at least 2 characters. |
|
|
|
|
- Each character of a base must be unique. |
|
|
|
|
- A base should not contain `+` or `-` characters. |
|
|
|
|
|
|
|
|
|
String number must contain only elements that are in base. |
|
|
|
|
|
|
|
|
|