题目描述:设计一个函数将字符串中的字符’‘移动到串的前面部分,前面的非’'字符后移,
但不能改变非’‘字符的先后顺序,函数返回串中字符’'的数量。
如原始串为"abcd***e12",处理后为"*****abcde12",函数返回值为5
将字符串中的字符’'移到串的前部分,保证非字符的顺序位置不能变
求无序序列中第K大的元素举例:求5个元素中第2大的元素 3 4 5 2 1则第2大的元素为 4#include <bits/stdc++.h>
求解门禁问题题目举例:例如:输入要输入的n个整数输入:51 2 1 1 31
求解旋转词问题题目举例:例如:abcdef和efabcd是旋转词,abcdef和feabcd则不是旋转词输
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M