diff --git a/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp b/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp index 5bc72345c..edf56bdbc 100644 --- a/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp +++ b/dynamic_programming/longest_increasing_subsequence_(nlogn).cpp @@ -3,7 +3,7 @@ // tested on : https://cses.fi/problemset/task/1145/ #include - +#include using namespace std; int LIS(int arr[], int n) { set active; // The current built LIS. @@ -29,10 +29,8 @@ int LIS(int arr[], int n) { } int main(int argc, char const* argv[]) { int n; - cout << "Enter size of array: "; cin >> n; int a[n]; - cout << "Enter array elements: "; for (int i = 0; i < n; ++i) { cin >> a[i]; }