leetcode/include/s0006_zigzag_conversion.hpp

21 lines
332 B
C++
Raw Permalink Normal View History

2022-11-21 13:15:56 +00:00
#ifndef S0006_ZIGZAG_CONVERSION_HPP
#define S0006_ZIGZAG_CONVERSION_HPP
2022-11-02 12:19:54 +00:00
#include <string>
using namespace std;
2022-11-30 10:20:36 +00:00
class S0006 {
2022-11-02 12:19:54 +00:00
public:
/**
* @brief Zigzag Conversion
*
* @param s the string to be converted
* @param numRows rows
* @return converted string
*/
string convert(string s, int numRows);
};
#endif