用计算机帮助解决ABCDE * 4 = EDCBA,一路风光无限
文章来源: 金拇指2019-10-07 12:42:02

[阅读原文]

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.

...