21 lines
332 B
C++
21 lines
332 B
C++
#ifndef S0006_ZIGZAG_CONVERSION_HPP
|
|
#define S0006_ZIGZAG_CONVERSION_HPP
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
class S0006 {
|
|
public:
|
|
/**
|
|
* @brief Zigzag Conversion
|
|
*
|
|
* @param s the string to be converted
|
|
* @param numRows rows
|
|
* @return converted string
|
|
*/
|
|
string convert(string s, int numRows);
|
|
};
|
|
|
|
#endif
|