chore(i8n,learn): processed translations

This commit is contained in:
Crowdin Bot
2021-02-06 04:42:36 +00:00
committed by Mrugesh Mohapatra
parent 15047f2d90
commit e5c44a3ae5
3274 changed files with 172122 additions and 14164 deletions

View File

@ -1,60 +1,60 @@
---
id: 5a23c84252665b21eecc7e82
title: 最大公约数
title: Greatest common divisor
challengeType: 5
videoUrl: ''
forumTopicId: 302277
dashedName: greatest-common-divisor
---
# --description--
编写一个函数,返回两个整数的最大公约数。
Write a function that returns the greatest common divisor of two integers.
# --hints--
`gcd`应该是一个功能。
`gcd` should be a function.
```js
assert(typeof gcd == 'function');
```
`gcd(24,36)`应该返回一个数字。
`gcd(24,36)` should return a number.
```js
assert(typeof gcd(24, 36) == 'number');
```
`gcd(24,36)`应该返回`12`
`gcd(24,36)` should return `12`.
```js
assert.equal(gcd(24, 36), 12);
```
`gcd(30,48)`应该返回`6`
`gcd(30,48)` should return `6`.
```js
assert.equal(gcd(30, 48), 6);
```
`gcd(10,15)`应该返回`5`
`gcd(10,15)` should return `5`.
```js
assert.equal(gcd(10, 15), 5);
```
`gcd(100,25)`应该返回`25`
`gcd(100,25)` should return `25`.
```js
assert.equal(gcd(100, 25), 25);
```
`gcd(13,250)`应该返回`1`
`gcd(13,250)` should return `1`.
```js
assert.equal(gcd(13, 250), 1);
```
`gcd(1300,250)`应该返回`50`
`gcd(1300,250)` should return `50`.
```js
assert.equal(gcd(1300, 250), 50);