摘要:
``` #include #include int main () { char str[50] = "lidan,wangyang;zhangwei:shunbin?yifan'xinyue"; char *p[7]; int i = 0; p[i] = strtok(str,",;?':"); 阅读全文
posted @ 2023-07-15 12:48
稻草人拾荒
阅读(22)
评论(0)
推荐(0)
摘要:
``` 难度等级:简单 给你两个字符串 word1 和 word2 。请你从 word1 开始,通过交替添加字母来合并字符串。 如果一个字符串比另一个字符串长,就将多出来的字母追加到合并后字符串的末尾。 返回 合并后的字符串 。 class Solution { public String merg 阅读全文
posted @ 2023-07-15 11:00
稻草人拾荒
阅读(18)
评论(0)
推荐(0)
摘要:
``` #include #include #include #include #include //extern int errno; #if 0 int countSpace(char* s){ int i = 0; int count = 0; while(s[i] != '\0'){ if( 阅读全文
posted @ 2023-07-15 10:56
稻草人拾荒
阅读(63)
评论(0)
推荐(0)
摘要:
给你两个字符串 word1 和 word2 。请你从 word1 开始,通过交替添加字母来合并字符串。 如果一个字符串比另一个字符串长,就将多出来的字母追加到合并后字符串的末尾。 返回 合并后的字符串 。 输入:word1 = "abc", word2 = "pqr" 输出:"apbqcr" 解释: 阅读全文
posted @ 2023-07-15 10:53
稻草人拾荒
阅读(39)
评论(0)
推荐(0)

浙公网安备 33010602011771号