This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimMatcherImpl: SimMatcher { | |
/** | |
* This method should return a positive comparison score between candidates. | |
* | |
* The score is calculated as the difference between the candidate's 'signature'. | |
* | |
* A ‘signature’ is calculated by summing the values of each character in a candidate’s full name, | |
* where a=1, b=2, c=3, and so on. Don't worry about accented characters (á, é), they don't appear. | |
* | |
* E.g., If a candidate is called “Thales Lima”, his signature will be 100. |