GUVI
Back

How to get input() an array vertically as shown in below example

Created 2 years ago
85 Views
1 Comments
Dakshya
@Dakshya
Dakshya
@DakshyaProfile is locked. Login

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

Comments
Please login to comment.
 
Powered by habitate.io Habitate