From a16a4bc9e86ce84347fcab1cd0ed0ac9c6846c11 Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Fri, 4 Oct 2024 20:48:48 +0530 Subject: [PATCH] fix: use const vector& instead of array --- dynamic_programming/longest_increasing_subsequence_nlogn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic_programming/longest_increasing_subsequence_nlogn.cpp b/dynamic_programming/longest_increasing_subsequence_nlogn.cpp index 67b3f61ea..b0a49d2da 100644 --- a/dynamic_programming/longest_increasing_subsequence_nlogn.cpp +++ b/dynamic_programming/longest_increasing_subsequence_nlogn.cpp @@ -7,7 +7,7 @@ #include using namespace std; -int LIS(int arr[], int n) { +int LIS(const std::vector& arr, int n) { set active; // The current built LIS. active.insert(arr[0]); // Loop through every element.