freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-79-passcode-derivat...

22 lines
614 B
Markdown
Raw Blame History

This file contains ambiguous Unicode 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: 5900f3bb1000cf542c50fece
title: 问题79密码派生
challengeType: 5
videoUrl: ''
---
# --description--
用于在线银行业务的常见安全方法是向用户询问密码中的三个随机字符。例如如果密码是531278他们可能会要求输入第2第3和第5个字符;预期的回复是317。文本文件keylog.txt包含50次成功的登录尝试。鉴于总是按顺序询问三个字符分析该文件以确定未知长度的最短可能秘密密码。
# --hints--
`euler79()`应该返回73162890。
```js
assert.strictEqual(euler79(), 73162890);
```
# --solutions--