简短的代码示例,解决有趣的问题(多种语言)
最近,我发现了一个有趣的示例“21 行代码中的拼写检查器”,作者是 Google 研究部门负责人 - Peter Norvig http://www.norvig.com/spell- Correct.html
虽然它本身就是一个非常有趣的东西,但看到如何用不同的语言解决相同的问题也很有趣!
您知道更多此类示例(以多种语言解决)吗?请在此发布链接。
recently I've found an interesting sample "spell checker in 21 lines of code" by head of Google research department - Peter Norvig http://www.norvig.com/spell-correct.html
Although it's an very interesting stuff by itself, it's also interesting to see how the same problem are solved in different languages!
Do You know more of such samples (solved in multiple languages)? Please post link here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 PLEAC 在多种语言中解决的相同问题。
目前包括以下语言:
Have look at PLEAC the same problems solved in numerous languages.
Currently these languages are included:
检查 Rosetta 代码,它是用不同语言解决的任务的巨大集合。
Check Rosetta Code, it's a huge collection of tasks solved in different languages.
网站 99 Bottles of Beer 包含歌曲《99 Bottles of Beer》歌词的实现1434 种编程语言的啤酒。
PLEAC 包含 Perl 食谱。
Rosetta 代码 还以多种不同的语言提供了同一任务的解决方案。
The website 99 Bottles of Beer holds implementations of the lyrics of the song 99 Bottles of Beer in 1434 programming languages.
PLEAC contains implementations in several languages of the common programming problems presented in the Perl Cookbook.
The Rosetta Code also presents solutions to the same task in many different languages.