Skip to content

Commit 3d064ea

Browse files
committed
Update increasing-triplet-subsequence.cpp
1 parent fb7c404 commit 3d064ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

C++/increasing-triplet-subsequence.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class Solution_Generalization {
2727
return increasingKUplet(nums, 3);
2828
}
2929

30-
bool increasingKUplet(const vector<int>& nums, const int k) {
30+
private:
31+
bool increasingKUplet(const vector<int>& nums, const size_t k) {
3132
vector<int> inc(k - 1, numeric_limits<int>::max());
3233
for (const auto& num : nums) {
3334
auto it = lower_bound(inc.begin(), inc.end(), num);

0 commit comments

Comments
 (0)