leetcode/include/s0014_longest_common_prefix.hpp

15 lines
226 B
C++
Raw Normal View History

2022-11-21 13:15:56 +00:00
#ifndef S0014_LONGEST_COMMON_PREFIX_HPP
#define S0014_LONGEST_COMMON_PREFIX_HPP
2022-11-03 08:27:54 +00:00
#include <string>
#include <vector>
using namespace std;
2022-11-30 10:20:36 +00:00
class S0014 {
2022-11-03 08:27:54 +00:00
public:
string longestCommonPrefix(vector<string>& strs);
};
#endif