flipper.c
void flip(int *lst, int left, int right) {
  while (left < right) {
	int tmp = -lst[left];
	lst[left] = -lst[right - 1];
	lst[right - 1] = tmp;
	left++;
	right--;
  }
}
/* Flip the elements of lst in place between the left and right indices and
   negate their values
*/
Flip the elements of lst in place between the left and right indices and
negate their values
Flip the elements of lst in place between the left and right indices and negate their values
void flip(int *lst, int left, int right) {
  while (left < right) {
	int tmp = -lst[left];
	lst[left] = -lst[right - 1];
	lst[right - 1] = tmp;
	left++;
	right--;
  }
}
void flip ( int * lst , int left , int right ) { while ( left < right ) { int tmp = - lst [ left ] ; lst [ left ] = - lst [ right - 1 ] ; lst [ right - 1 ] = tmp ; left ++ ; right -- ; } }
Flip the elements of lst in place between the left and right indices and
negate their values
Flip the elements of lst in place between the left and right indices and negate their values