let me know if u find any discrepancy
Asif,
It seems that something is messed up. You didn't say how to score a suffix. If a suffix is scored with the same weight as a last name, then "William III" should score higher than 'William II' in problem 5. If the suffix is not scored at all, then 'william' should score higher than 'William II' or 'William III'. The same sort of problem occurs in problem 4.
if i remember correctly, suffix was supposed to be treated similarly to a prefix. [the 1st letter only]
I can confirm it. For suffixes, just the first letter counts. If it didn't william would be greater than William, since w > W (ASCII value).
Return the largest number that is adjacent to a zero
3830 Solvers
Find relatively common elements in matrix rows
890 Solvers
934 Solvers
Compute a dot product of two vectors x and y
758 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
142 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!