freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-98-anagramic-square...

22 lines
989 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f3cf1000cf542c50fee1
title: 问题98Anagramic正方形
challengeType: 5
videoUrl: ''
---
# --description--
通过分别用1,2,9和6替换单词CARE中的每个字母我们形成一个正方形数字1296 = 362.值得注意的是通过使用相同的数字替换anagramRACE形成一个正方形数字9216 = 962.我们将CARE和RACE称为方形字谜字对并进一步指定不允许前导零不同的字母也不能与另一个字母具有相同的数字值。使用words.txt右键单击和“保存链接/目标为...”一个包含近两千个常用英语单词的16K文本文件找到所有方形字谜词对一个回文词不被认为是一个自己的字谜。这种货币对的任何成员形成的最大平方数是多少注意形成的所有字谜必须包含在给定的文本文件中。
# --hints--
`euler98()`应该返回18769。
```js
assert.strictEqual(euler98(), 18769);
```
# --solutions--