Generate random substring of length
k from a given string with equal probability. For example, string
tree has 7 substrings with length of two,
er. The function should return any one of them with the probability of
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.