C ++ code for First negative integer in every window of size k
#include <iostream> NEW_LINE using namespace std ; void printFirstNegativeInteger ( int arr [ ] , int k , int n ) { int firstNegativeIndex = 0 ; int firstNegativeElement ; for ( int i = k - 1 ; i < n ; i ++ ) {