Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 705 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 705 Bytes

Challenge-361-Tally-Program

5 Friends (let's call them a, b, c, d and e) are playing a game and need to keep track of the scores. Each time someone scores a point, the letter of his name is typed in lowercase. If someone loses a point, the letter of his name is typed in uppercase. Results are returned from highest scoring to lowest.

Challenge from the subreddit /r/DailyProgrammer

Compiled using:

g++ 361_Tally_Program.cpp -std=c++17 -o TallyProgram

Ran from terminal using:

./TallyProgram <INPUT_HERE>

Example:

./TallyProgram.exe EbAAdbBEaBaaBBdAccbeebaec

c:3, d:2, e:1, a:1, b:0