вот фрагмент кода, который я хочу понять:
Код: Выделить всё
class Solution {
public:
string reverseWords(string s) {
int n=s.length();
reverse(s.begin(), s.end());
s.push_back(' ');
int j=0;
for(int i=0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79059564/can-someone-explain-what-exactly-line-10-is-doing-reverses-beginj-s-begin[/url]