How to get input() an array vertically as shown in below example
Created 2 years ago
85
Views
1
Comments
Given 2 numbers N,K and an array of N strings, find if any K consecutive strings are same.
Input Size : K <= N <= 1000
Sample Testcase :
INPUT
5 3
code
overload
vishal
vishal
vishal
OUTPUT
yes