From 26e2620b76212846c56217e27709d6278a0e764c Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 14 Jan 2020 10:07:48 +0000 Subject: [PATCH 1/2] adding valid rule on atoibase --- subjects/atoibase.en.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index 50f7769b..e92f6cd2 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -4,13 +4,15 @@ Write a function that takes a `string` number and its `string` base in parameters and returns its conversion as an `int`. -If the base or the `string` number is not valid it returns `0`: +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. Only valid `string` numbers will be tested. From a48dd0c1a6847e4827e3be4537af4749a4c699fa Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 14 Jan 2020 10:59:30 +0000 Subject: [PATCH 2/2] removing "-" --- subjects/atoibase.en.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/atoibase.en.md b/subjects/atoibase.en.md index e92f6cd2..8674ec30 100644 --- a/subjects/atoibase.en.md +++ b/subjects/atoibase.en.md @@ -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.