← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given an array of integers representing transaction amounts and an integer k, count how many consecutive segments of exactly k transactions are strictly increasing. A segment is strictly increasing if every transaction amount in the segment is greater than the one that preceded it.