Click here to Skip to main content
15,913,722 members

Comments by Member 13325284 (Top 2 by date)

Member 13325284 2-Aug-17 5:37am View    
Consider this is the string:

string srch = "Sachin is a great player. Sachin has maximum century, Sachin has hundred century";

Now for the above string, with the above given solution we can find out that the words "Sachin" and "has" are repeated, but for the word "century", we are not able to detect as repeated words. Reason for this is, the word "century" is appended with comma separator, so it considers as "century," instead of just "century".

Is there anyway where we can resolve this?
Member 13325284 2-Aug-17 5:35am View    
Consider this is the string:

string srch = "Sachin is a great player. Sachin has maximum century, Sachin has hundred century";

Now for the above string, with the above given solution we can find out that the words "Sachin" and "has" are repeated, but for the word "century", we are not able to detect as repeated words. Reason for this is, the word "century" is appended with comma separator, so it considers as "century," instead of just "century".

Is there anyway where we can resolve this?