I need to calculate how many times each keyword is reoccurring in a string, with sorting by highest number.
What’s the fastest algorithm available in .NET code for this purpose?
I need to calculate how many times each keyword is reoccurring in a string,
Share
EDIT: code below groups unique tokens with count
This is finally starting to make more sense to me…
EDIT: code below results in count correlated with target substring:
Results is now:
Original code below:
with grateful acknowledgement to this previous response.
Results from debugger (which need extra logic to include the matching string with its count):