Brute Force Practice 2
You have a string (indexed from
Input Specification
The first line will have the string.
The second line will have
Output Specification
Print the lexicographically least substring of length at least
Sample Input
Copy
iloveprogramming
4
Sample Output
Copy
ammi
Comments
I did length of only
and passed, test cases are weak.
I think you might want to review the definition of lexicographical order.
Oh yeah.
He a little confused, but he got the spirit.
Python hax always provide a nice meme