Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a74c45

Browse files
Adding description for LIS problem
1 parent d0d5ba8 commit 3a74c45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎24- Dynamic Programming/longestIncreasingSubsequence.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#include <iostream>
22
using namespace std;
3+
4+
/*
5+
The longest increasing subsequence problem is to find a subsequence of a given sequence in which
6+
he subsequence's elements are in sorted order, lowest to highest, and in which the subsequence is
7+
as long as possible.
8+
*/
39

410
int _lis(int arr[], int n, int* max_ref)
511
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /