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,93 @@
---
id: 594810f028c0303b75339acc
title: ABC问题
title: ABC Problem
challengeType: 5
videoUrl: ''
forumTopicId: 302220
dashedName: abc-problem
---
# --description--
<p>您将获得ABC块的集合例如童年字母块。每个街区有20个街区两个字母。块的所有侧面都保证有完整的字母表。块的样本集合 </p><p> BO </p><p> XK </p><p> DQ </p><p> CP </p><p> NA </p><p> GT </p><p> (回覆) </p><p> TG </p><p> QD </p><p> FS </p><p> JW </p><p> HU </p><p> VI </p><p> (一个) </p><p> OB </p><p> ER </p><p> FS </p><p> LY </p><p> PC </p><p> ZM </p><p>要记住一些规则: </p>一旦使用了块上的字母,就不能再使用该块。该函数应该不区分大小写。 <p>实现一个带字符串(单词)的函数,并确定该单词是否可以与给定的块集合拼写。 </p>
You are given a collection of ABC blocks (e.g., childhood alphabet blocks). There are 20 blocks with two letters on each block. A complete alphabet is guaranteed amongst all sides of the blocks. The sample collection of blocks:
<pre>(B O)
(X K)
(D Q)
(C P)
(N A)
(G T)
(R E)
(T G)
(Q D)
(F S)
(J W)
(H U)
(V I)
(A N)
(O B)
(E R)
(F S)
(L Y)
(P C)
(Z M)
</pre>
# --instructions--
Implement a function that takes a string (word) and determines whether the word can be spelled with the given collection of blocks.
Some rules to keep in mind:
<ul>
<li>Once a letter on a block is used, that block cannot be used again.</li>
<li>The function should be case-insensitive.</li>
</ul>
# --hints--
`canMakeWord`是一个功能。
`canMakeWord` should be a function.
```js
assert(typeof canMakeWord === 'function');
```
`canMakeWord`应该返回一个布尔值。
`canMakeWord` should return a boolean.
```js
assert(typeof canMakeWord('hi') === 'boolean');
```
`canMakeWord("bark")`应该返回true
`canMakeWord("bark")` should return true.
```js
assert(canMakeWord(words[0]));
```
`canMakeWord("BooK")`应该返回false
`canMakeWord("BooK")` should return false.
```js
assert(!canMakeWord(words[1]));
```
`canMakeWord("TReAT")`应该返回true
`canMakeWord("TReAT")` should return true.
```js
assert(canMakeWord(words[2]));
```
`canMakeWord("COMMON")`应返回false
`canMakeWord("COMMON")` should return false.
```js
assert(!canMakeWord(words[3]));
```
`canMakeWord("squAD")`应该返回true
`canMakeWord("squAD")` should return true.
```js
assert(canMakeWord(words[4]));
```
`canMakeWord("conFUSE")`应该返回true
`canMakeWord("conFUSE")` should return true.
```js
assert(canMakeWord(words[5]));