#stringss
5 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Have an array arr of size 256 (or 128 if you limit yourself to normal ASCII). When you read a character c you increment arr at index c. Once you're finished reading all values you take the i ∈ ℕ₀, i < 256 (or i < 128 if you limit yourself to normal ASCII), for which arr[i] is maximal.
Cast i to a char and that's your answer
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.