https://ide.codingblocks.com/s/240410… plz help
Output is correct but some test cases are not passing
@dhirenkinha
these are the mistakes in your code
- line 11, iterate till i<n not i<=n;
- start with ans=1
- elements in subsequence should be strictly increasing. So change condition in line14 to if(arr[j]<arr[i]){
still those test cases are not passing
sir plz help with this