#include #include #include #define SIZE 20 int checkMinHeap(const long* arr, const int size){ for (int i = 0; i<=(size-2)/2; i++) { if(arr[2*i] < arr[i]) return -1; if(arr[2*i+1] < arr[i]) return -1; } return 1; } long int* strToInt(const char* chArr){ int j = strlen(chArr); //int i = 0; //printf("dlength %d\n",j/2-1); long int* dArr = (long int*)calloc(j,sizeof(long)); char* pEND; for(int i=0; i