0

What is the problem with the code

/* if i hava an array { 5, 2, 7, 3, 4, 6 } and i want to count element in the longest increasing subsequence in the pervious arry the sub is { 2, 3, 4, 6 } the code for something like this is */ the output ol should be 4 https://code.sololearn.com/c1PMd8H3r0L9/?ref=app

17th Jul 2018, 3:35 PM
Mohamed Nasser
Mohamed Nasser - avatar
1 Answer
0
Use sizeof(Array-name)/sizeof(Array-Datatype) to get the number of elements in an array.
4th Jan 2019, 5:47 AM
Rain
Rain - avatar