This small script provides some code to check a project of your installation (located in .../www
) against the associated git commit on drupal.org.
Notice: currently the root path and temp directory are hardcoded.
Check status of views module.
int rowNegatives(int *arr, int size){ | |
int li = 0, ri = size - 1, negative=0; | |
//corner cases | |
if(*(arr+size-1) >=0){return 0;} | |
if(*arr<0){return size;} | |
while(li<=ri){ | |
int mid = li + (ri - li)/2; | |
if(*(arr+mid)<0 && *(arr+mid-1)>=0){ | |
return size - mid; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct node node; | |
struct node { | |
int data; | |
node *next; | |
}; |