Featured
-
Difference between variable declaration globally and locally
During my project work I was working on a code in
by avishq -
Comparing float with a value
Hi everyone, I was looking at two C programs give
by avishq -
How to tokenize the simple “Hello World” program of C/c++ language.?
Hello all. Can anyone help me to create a C/C++
by manish.joshi -
Floyd cycle detection
Can anybody tell me the complexity of Floyd cycle
by avishq
Tags
find the longest sub-arraythat all of its elements are less or equalA[i]
I have an array A[1,...,n] of positive numbers, for example:
[1, 2, 5, 3, 7, 2, 8, 4]
I need to build an array S[1,...,n] according to the definition:
S[i] = max {k|ik <ji :A[j] A[i] and k i}
It means ...