This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Đếm số phần tử lớn hơn 2 phần tử xung quanh

10cth1-2 August 1, 2011 0
int dempt (int a[], int n)
  int dem=0;
  if (n>1) dem = a[n-1]>a[n-2];
  for (int i=1; i<n-1; i++)
    if (a[i]>a[i-1] && a[i]>a[i+1])
  return dem;

Last modified on September 21st, 2023 at 11:10 pm

Nam Le

0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.