- #1
- 986
- 12
Okay, in this thread I'm going to attempt some problems and I would appreciate it if the C++ purists could offer feedback. I Googled to get some ideas for problems. Here's a preview:
I will add more problems as I go along in this thread.
- Eliminate whitespace from a string
- Remove duplicate characters from a string (e.g. "AAA BBB" -> "A B")
- Return the sum of the two largest integers in an integer array
- Sum the n largest integers in an array of integers where every integer is between 0 and 9
I will add more problems as I go along in this thread.