educative.io

Please check the logic


#1

Condition to check sliding window size seems to be incorrect. Please correct me if I am wrong.
In the below line

if (windowEnd >= k - 1) { // check it here