forked from Doragd/Algorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
HJ4 字符串分隔 #4
Copy link
Copy link
Open
Labels
字符串字符串字符串
Description
sumulige
opened on Dec 24, 2023
Issue body actions
- 输入一个字符串,请按长度为8拆分每个输入字符串并进行输出;
- 长度不是8整数倍的字符串请在后面补数字0,空字符串不处理。
- 问题分解:
- 先判断是否为8的整数倍 不是先将0填充满足条件
- 然后在分割 注意subString这个方法直接取的 beginIndex包括 endIndex不包括 是个坑
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
字符串字符串字符串