Given a string need to find the longest uniform substring and return starting index and the length of that substring

前端 未结 0 405
自闭症患者
自闭症患者 2020-12-22 19:30

For the input: "abbbccda" the longest uniform substring is "bbb" (which starts at index 1 and is 3 characters long).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题