Files
freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/rosetta-code/count-the-coins.chinese.md
Kristofer Koishigawa b3213fc892 fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite

Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working.

* fix: ran script, updated testStrings and solutions
2020-03-03 18:49:47 +05:30

1.4 KiB
Raw Blame History

title, id, challengeType, videoUrl, localeTitle
title id challengeType videoUrl localeTitle
Count the coins 59713bd26bdeb8a594fb9413 5 计算硬币

Description

美国货币有四种常见硬币:

季度25美分硬币10美分5美分和便士1美分

有六种方法可以换15美分

一角钱和一角钱一角钱和5便士3镍2镍和5便士一镍和10便士15便士任务

实现一个功能,以确定使用这些普通硬币改变一美元的方式有多少? 1美元= 100美分

参考: 麻省理工学院出版社的算法

Instructions

Tests

tests:
  - text: <code>countCoins</code>是一个函数。
    testString: assert(typeof countCoins === 'function');
  - text: <code>countCoints()</code>应该返回242。
    testString: assert.equal(countCoins(), 242);

Challenge Seed

function countCoins () {
  // Good luck!
  return true;
}

Solution

// solution required