Skip to content

Commit

Permalink
Merge pull request #756 from burenkov-anton/add_translations
Browse files Browse the repository at this point in the history
Add translations
  • Loading branch information
solar05 committed May 8, 2021
2 parents f88155c + a7bbcbd commit 153dd41
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/battle_asserts/issues/integer_difference.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
(def tags ["collections"])

(def description
{:en "Find how many pairs X, Y there are in the array, such that abs(X-Y) is equal to the first argument.
Найдите сколько в массиве существует пар X, Y, таких что модуль значения выражения (X - Y) равен первому аргументу."})
{:en "Find how many pairs X, Y there are in the array, such that abs(X-Y) is equal to the first argument."
:ru "Найдите сколько в массиве существует пар X, Y, таких что модуль значения выражения (X - Y) равен первому аргументу."})

(def signature
{:input [{:argument-name "differ" :type {:name "integer"}}
Expand Down
18 changes: 12 additions & 6 deletions src/battle_asserts/issues/isbn_validator.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@

(def tags ["strings"])

(def description "Validate given ISBN identifier.
An ISBN is a ten digit code which identifies a book.
The first nine digits represent the book and the last digit is used to make sure the ISBN is correct
To verify an ISBN you obtain the sum of 10 times the first digit, 9 times the second digit, 8 times the third
digit ... all the way till you add 1 times the last.digit. if the sum leaves no remainder when divided by
11 the code is valid ISBN.")
(def description
{:en "Validate given ISBN identifier.
An ISBN is a ten digit code which identifies a book.
The first nine digits represent the book and the last digit is used to make sure the ISBN is correct
To verify an ISBN you obtain the sum of 10 times the first digit, 9 times the second digit, 8 times the third
digit ... all the way till you add 1 times the last digit. if the sum leaves no remainder when divided by
11 the code is valid ISBN."
:ru "Проверьте на правильность данный ISBN идентификатор.
ISBN - это десятизначный код, который идентифицирует книгу.
Первые девять цифр представляют книгу, а последний используется для проверки корректности.
Для проверки ISBN нужно просуммировать 10 раз первую цифру, 9 раз вторую, 8 раз третюю и так далее,
в конце нужно прибвать 1 раз последнюю цифру. Если при делении полученной суммы на 11 нет остатка, то ISBN корректен."})

(def signature
{:input [{:argument-name "code" :type {:name "string"}}]
Expand Down
13 changes: 9 additions & 4 deletions src/battle_asserts/issues/isomorphic_strings.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@

(def tags ["strings"])

(def description "Given two strings, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a character must be replaced with another character while preserving the order of characters.
No two characters may map to the same character but a character may map to itself.")
(def description
{:en "Given two strings, determine if they are isomorphic.
Two strings are isomorphic if the characters in s can be replaced to get t.
All occurrences of a character must be replaced with another character while preserving the order of characters.
No two characters may map to the same character but a character may map to itself."
:ru "Даны две строки, определите изоморфны ли они.
Две строки являются изоморфными, если символы в одной строке можно заменить так, чтобы получить другую строку.
Все вхождения определенного символа должны быть заменены другим символом, с сохранением порядка символов.
Два различных символа не могут быть отражены на один и тот же итоговый, но символ может быть отражен на самого себя."})

(def signature
{:input [{:argument-name "s1" :type {:name "string"}}
Expand Down

0 comments on commit 153dd41

Please sign in to comment.