Reverse Left Words
This commit is contained in:
14
include/offer_58.hpp
Normal file
14
include/offer_58.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef OFFER_58_HPP
|
||||
#define OFFER_58_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Solution {
|
||||
public:
|
||||
string reverseLeftWords(string s, int n);
|
||||
void reverseSubStr(string &s, int begin, int end);
|
||||
};
|
||||
|
||||
#endif
|
@@ -7,6 +7,7 @@ using namespace std;
|
||||
|
||||
class Solution {
|
||||
public:
|
||||
void reverseSubStr(string &s, int begin, int end);
|
||||
string reverseWords(string s);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user