From d14b269d11d19df058432b23476ba93586cf567b Mon Sep 17 00:00:00 2001 From: Eatswap Date: Wed, 1 Mar 2023 21:13:11 +0800 Subject: [PATCH] add: const qualifier --- cpp/2303/230301.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/2303/230301.cpp b/cpp/2303/230301.cpp index 5cda7c3..03a73ff 100644 --- a/cpp/2303/230301.cpp +++ b/cpp/2303/230301.cpp @@ -13,7 +13,7 @@ private: static inline const int S = 50001; public: - static std::vector sortArray(std::vector& nums) { + static std::vector sortArray(const std::vector& nums) { const int n = nums.size(); std::vector ret(n); uint16_t bucket[100005]{};