public Dictionary<char, int> LetterCount(string word) {
Dictionary<char, int> letterCount = new Dictionary<char, int>();
char[] wordLetters = word.ToCharArray();
for (int i = 0; i < wordLetters.Length; i++) {
if (letterCount.ContainsKey(wordLetters)) {
letterCount[wordLetters]++;
}
else {
letterCount.Add(wordLetters, 1);
}
}
return letterCount;
}
Last reply 1 minute ago
Official UCL Offer Holders Thread for 2024 entryLast reply 6 minutes ago
Official: Aston University A100 2024 Entry Applicant thread1165
Last reply 22 minutes ago
Official University of Edinburgh Applicant Thread for 2024Last reply 24 minutes ago
what happens if i dont meet the requirements for my degree apprenticeship?Last reply 34 minutes ago
University of Oxford 2025 Undergraduate Applicants Official ThreadLast reply 44 minutes ago
Can I switch to a placement year on the same course?Last reply 1 hour ago
Even Europe’s far-right firebrands seem to sense Brexit is a disaster- The GuardianLast reply 8 hours ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 1 day ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 4 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 8 hours ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 1 day ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 4 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]