Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else
- {
- while (i < d.Length)
- {
- string current = "";
- for (int j = i; j < i + maxLength; j++)
- {
- if (j < d.Length)
- {
- // current += d[j];
- current = d.Substring(i, j - i + 1);
- if (D.ContainsKey(current))
- {
- temp2 = D[current];
- foreach (KeyValuePair<int, int> a in temp2)
- {
- if (a.Key >= first && a.Key <= last)
- sum += a.Value;
- }
- }
- }
- else break;
- }
- i++;
- }
- arr[s_i] = sum;
- s_i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement