leetcode/include/s0151_reverse_words_in_a_st...

15 lines
250 B
C++

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