用计算机帮助解决ABCDE * 4 = EDCBA,一路风光无限

打印 被阅读次数

[阅读原文]

Let Computer Conquer ABCDE * 4 = EDCBA, Step by Step

Hal understood the problem ABCDE * 4 = EDCBA very well. So he brought up TextEdit, probably would try something there.

“Let’s play with it in Xcode, inside a test file. And we have fix-width font by default at least. Maybe we’ll try some program solution too.”, I suggested.

“Sure”, Hal got used to unit test already.

He created a file MathTests.swift with a single function.

...

登录后才可评论.