leetcode-daily/cpp/2308/defs.h

50 lines
748 B
C++

#ifndef LEETCODE_CPP_DEFS_H
#define LEETCODE_CPP_DEFS_H
#include <queue>
#include <vector>
class LC230827 {
public:
static bool canCross(const std::vector<int>&);
};
class LC230828 {
private:
std::queue<int> q;
public:
LC230828();
void push(int x);
int pop();
int top();
bool empty();
};
class LC230829 {
public:
static int bestClosingTime(const std::string&);
};
class LC230927 {
public:
static std::string decodeAtIndex(const std::string& s, int k);
};
class LC231014 {
public:
static int paintWalls(const std::vector<int>&, const std::vector<int>&);
};
class LC231015 {
public:
static int numWays(int, int);
};
class LC231016 {
public:
static std::vector<int> getRow(int rowIndex) noexcept;
};
#endif //LEETCODE_CPP_DEFS_H