johnnyshi / finddifferenceinarray Goto Github PK
View Code? Open in Web Editor NEWGiven an array of N days and a window size K, find difference of number of increasing subarray and decreasing subarray, and print the answer, which should be exactly N-K+1 times.