My solution is less clean and too verbose, but it does not require standard 11/14/17/20, also 15% faster then tuple/pair.
In your solution i would use a pair instead of a tuple:)
What's that
If there weren't extra spaces, the test would pass, no?
try adding: std::cout << "'" << your_result << "'" << "\n"; at the end of you function.
std::cout << "'" << your_result << "'" << "\n";
Loading collection data...
My solution is less clean and too verbose, but it does not require standard 11/14/17/20, also 15% faster then tuple/pair.
In your solution i would use a pair instead of a tuple:)
What's that
If there weren't extra spaces, the test would pass, no?
try adding:
std::cout << "'" << your_result << "'" << "\n";
at the end of you function.