大厂面试真题详解:分割字符串
给一个字符串,你可以选择在一个字符或两个相邻字符之后拆分字符串,使字符串由仅一个字符或两个字符组成,输出所有可能的结果
样例1
输入: "123" 输出: [["1","2","3"],["12","3"],["1","23"]]
样例2
输入: "12345" 输出: [["1","23","45"],["12","3","45"],["12","34","5"],["1","2","3","45"],["1","2","34","5"],["1","23","4","5"],["12"...