You are viewing a single comment's thread. Return to all comments →
C#
List matchingList = new List(); foreach (string search in queries) { int count = 0; for (int i = 0; i < strings.Count; i++) { if (search == strings[i]) { count ++; } } matchingList.Add(count); } return matchingList;
List matchingList = new List();
foreach (string search in queries) { int count = 0; for (int i = 0; i < strings.Count; i++) { if (search == strings[i]) { count ++; } } matchingList.Add(count); } return matchingList;
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
C#