#ifndef LEETCODE_CPP_DEFS_H #define LEETCODE_CPP_DEFS_H #include #include class LC230501CN { public: using CVIR = const std::vector&; static int numOfMinutes(int, int, CVIR, CVIR); }; class LC230501 { public: static double average(const std::vector&) noexcept; }; class LC230502CN { public: static std::vector powerfulIntegers(int, int, int) noexcept; }; class LC230502 { public: static int arraySign(const std::vector&) noexcept; }; class LC230503CN { public: static bool isValid(const std::string&) noexcept; }; class LC230503 { public: template using V = std::vector; using VVI = V>; using CVIR = const V&; static VVI findDifference(CVIR, CVIR) noexcept; }; class LC230504CN { public: static int maxTotalFruits(const std::vector>&, int, int) noexcept; }; class LC230504 { public: static std::string predictPartyVictory(std::string) noexcept; }; class LC230505CN { public: static int hardestWorker(int, const std::vector>&) noexcept; }; class LC230505 { public: static int maxVowels(const std::string&, int) noexcept; }; class LC230506 { public: static int numSubseq(std::vector&, int) noexcept; }; class LC230506CN { public: static int minNumberOfFrogs(const std::string&) noexcept; }; class LC230507 { public: static std::vector longestObstacleCourseAtEachPosition(const std::vector&) noexcept; }; class LC230507CN { public: static int numPairsDivisibleBy60(const std::vector&) noexcept; }; class LC230508 { public: static int diagonalSum(const std::vector>&) noexcept; }; class LC230508CN { private: static inline constexpr std::int8_t dX[] = {0, 1, 0, -1}; static inline constexpr std::int8_t dY[] = {1, 0, -1, 0}; public: static int minPushBox(const std::vector>&) noexcept; }; class LC230509CN { public: static int countTime(const std::string&) noexcept; }; class LC230509 { private: static inline constexpr int dX[] = {0, 1, 0, -1}; static inline constexpr int dY[] = {1, 0, -1, 0}; public: static std::vector spiralOrder(const std::vector>&) noexcept; }; class LC230510CN { public: static constexpr inline int smallestRepunitDivByK(int k) noexcept; }; class LC230511CN { public: static bool queryString(const std::string& s, int n) noexcept; }; class LC230511 { public: using CVIR = const std::vector&; static int maxUncrossedLines(CVIR, CVIR) noexcept; }; class LC230512 { public: static long long mostPoints(const std::vector>&) noexcept; }; class LC230513 { public: static int countGoodStrings(int, int, int, int) noexcept; }; class LC230520 { public: template using V = std::vector; using VD = V; using CVVS = const V>; static VD calcEquation(CVVS&, const VD&, CVVS&) noexcept; }; #endif //LEETCODE_CPP_DEFS_H