![]() |
VOOZH | about |
Given a string str, find the smallest window length that contains all the characters of the given string at least one time.
Examples:
Input: str = "aabcbcdbca"
Output: 4
Explanation: Sub-string -> "dbca"Input: str = "aaab"
Output: 2
Explanation: Sub-string -> "ab"
Table of Content
4
4
Related Article: