leetcode/include/s0151_reverse_words_in_a_st...

15 lines
250 B
C++
Raw Normal View History

2022-11-30 08:24:38 +00:00
#ifndef S0151_REVERSE_WORDS_IN_A_STRING_HPP
#define S0151_REVERSE_WORDS_IN_A_STRING_HPP
#include <string>
using namespace std;
2022-11-30 10:20:36 +00:00
class S0151 {
2022-11-30 08:24:38 +00:00
public:
2022-11-30 09:24:58 +00:00
void reverseSubStr(string &s, int begin, int end);
2022-11-30 08:24:38 +00:00
string reverseWords(string s);
};
#endif