leetcode-daily/cpp/2305/defs.h

44 lines
775 B
C++

#ifndef LEETCODE_CPP_DEFS_H
#define LEETCODE_CPP_DEFS_H
#include <vector>
#include <string>
class LC230501CN {
public:
using CVIR = const std::vector<int>&;
static int numOfMinutes(int, int, CVIR, CVIR);
};
class LC230501 {
public:
static double average(const std::vector<int>&) noexcept;
};
class LC230502CN {
public:
static std::vector<int> powerfulIntegers(int, int, int) noexcept;
};
class LC230502 {
public:
static int arraySign(const std::vector<int>&) noexcept;
};
class LC230503CN {
public:
static bool isValid(const std::string&) noexcept;
};
class LC230503 {
public:
template<typename T>
using V = std::vector<T>;
using VVI = V<V<int>>;
using CVIR = const V<int>&;
static VVI findDifference(CVIR, CVIR) noexcept;
};
#endif //LEETCODE_CPP_DEFS_H