本文介绍了编码挑战:智能地比较名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 这个简单的建议由Brent Hoskisson建议。 创建一个智能比较两个名称的方法。 智能意味着它需要考虑名称可能采用的不同形式。例如: John Paul Smith 符合 John Paul Smith Smith John Paul John P Smith Smith John P J Paul Smith Smith J Paul John Smith Smith John 您是否选择使用二进制匹配/不匹配,或者表示匹配确定程度的分数取决于您。 因简洁代码而获得的积分。每个挑战者的不同参赛人数没有限制。 注意:下周我星期五离开。有花花公子画廊的人请在下周五(3月24日)发布挑战解决方案 This simple one is suggested by Brent Hoskisson.Create a method that will compare two names intelligently. "Intelligently" means that it needs to take into account the different forms a name may take. For example:John Paul SmithWould match withJohn Paul SmithSmith John PaulJohn P SmithSmith John PJ Paul SmithSmith J PaulJohn SmithSmith JohnWhether you choose to use a binary match/no match, or a score indicating a degree of certainty of the match is up to you.Points awarded for brevity of code. No restrictions on the number of different entries per challenger.Note: next week I'm away Friday. Can someone in the peanut gallery please post a challenge next Friday (24 March) 解决方案 这篇关于编码挑战:智能地比较名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-17 01:34