/* These are c++ code on Trees All codes are commented to view the output of code uncomment it and comment all other codes to see it's output. */ #include<bits/stdc++.h> using namespace std; //code 1 /*int main() { int n,i; cin>>n; int a[n+1]; for(i=0;i<n;i++) { cin>>a[i]; } bool flag=true; for(i=0;i<(n/2)-1;i++) { if(a[i]<a[(2*i)+1] || a[i]<a[2*i+2]) { flag=false; break; } } if(flag==true) { cout<<"it is max heap"<<endl; } else { cout...