leetcode/include/s0151_reverse_words_in_a_string.hpp
2022-11-30 17:24:58 +08:00

15 lines
253 B
C++

#ifndef S0151_REVERSE_WORDS_IN_A_STRING_HPP
#define S0151_REVERSE_WORDS_IN_A_STRING_HPP
#include <string>
using namespace std;
class Solution {
public:
void reverseSubStr(string &s, int begin, int end);
string reverseWords(string s);
};
#endif