标题: 和我新买的小米SU 比较了一下 感觉之前的车 油钱好贵
作者: #变色龙
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/282337
时间: 2024-12-05 10:16:32
摘要:
作者: #变色龙
板块: #搞七捻三
编号:
282337帖子: https://linux.do/t/topic/282337
时间: 2024-12-05 10:16:32
摘要:
标题: OpenAI官宣12天12场新品发布会
作者: #如果初遇太过惊艳
板块: #前沿快讯
编号:
帖子: https://linux.do/t/topic/282339
时间: 2024-12-05 10:17:31
摘要:
作者: #如果初遇太过惊艳
板块: #前沿快讯
编号:
282339帖子: https://linux.do/t/topic/282339
时间: 2024-12-05 10:17:31
摘要:
标题: 新入职的小白,想请教大佬们计算机的中级证书有哪些能考的啊
作者: #TT
板块: #非我莫属
编号:
帖子: https://linux.do/t/topic/282340
时间: 2024-12-05 10:17:39
摘要:
作者: #TT
板块: #非我莫属
编号:
282340帖子: https://linux.do/t/topic/282340
时间: 2024-12-05 10:17:39
摘要:
双非研究僧,学的是电子信息,但是现在工作是属于在一个编辑部从事一些信息技术的工作(实际感觉和计算机关联不大 ),想为以后评职称考虑,想考个中级证书,编辑类的有责编证书,计算机类的中级证书有哪些啊,求大佬指导指导,给点意见是考编辑类的还是计算机类呢
标题: 网易云音乐会员7天×4
作者: #taylorzun1018
板块: #福利羊毛
编号:
帖子: https://linux.do/t/topic/282341
时间: 2024-12-05 10:18:47
摘要:
作者: #taylorzun1018
板块: #福利羊毛
编号:
282341帖子: https://linux.do/t/topic/282341
时间: 2024-12-05 10:18:47
摘要:
感谢大佬们日常分享
特此也分享一下12月网易云音乐7天会员×4~
(感觉分享红包形式随机领到的天数变少了,估计是网易云产品为了拉更多新用户搞得机制)
送您一张会员礼品卡,快来看看TA的祝福吧! 我的礼品卡
标题: Leetcode每日一题练习 ------ 2337. 移动片段得到字符串
作者: #ninijia
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/282342
时间: 2024-12-05 10:18:54
摘要:
作者: #ninijia
板块: #开发调优
编号:
282342帖子: https://linux.do/t/topic/282342
时间: 2024-12-05 10:18:54
摘要:
从Leetcode 每日一题练习继续讨论:
2337. 移动片段得到字符串
2337. Move Pieces to Obtain a String
题解
本题是一道字符串问题,对于这种问题我们无需考虑将start变为target的具体移动步骤,只需考虑什么条件下一定能通过移动将start中的字符移动为target中的某个字符。对于字符’L’来说,只要target中存在一个’L’在start中这个’L’的相同或者左侧位置并且二者之间的位置全部为空格,就可以将start的’L’移动到target中对应的’L’处,'R’同理。
则可以同时用两个指针分别遍历target和start,每当在target中遇到一个非空字符时,若为’L’则移动start中的指针直到找到一个’L’,若start中的’L’的下标和target中’L’下标相同或者更大(即start中的’L’在target中对应’L’的右侧,这样就可以通过左移移动到target中对应的’L’)。对’R’同理,注意target中L R出现的顺序要与start中相同且start中的非空格字符满足上述的下标条件('L’在target右侧,'R’在target左侧)。如果全部满足条件则说明可以转换成target,否则不可以。
代码
class Solution {
public:
bool canChange(string start, string target) {
int startindex = 0;
int targetindex = 0;
int n = start.size();
for(targetindex=0;targetindex<n;targetindex++){
if (target[targetindex] == '_'){
continue;
}else if(target[targetindex] == 'L'){
while(start[startindex] == '_'){
startindex++;
}
if (start[startindex] == 'R' || startindex<targetindex || startindex >= n){
return false;
}
startindex++;
}else{
while(start[startindex] == '_'){
startindex++;
}
if (start[startindex] == 'L' || startindex>targetindex || startindex >= n){
return false;
}
startindex++;
}
}
while(startindex<n){
if(start[startindex] != '_'){
return false;
}
startindex++;
}
return true;
}
};
标题: 出个短域名 0l.hk
作者: #aaa4
板块: #跳蚤市场
编号:
帖子: https://linux.do/t/topic/282343
时间: 2024-12-05 10:20:46
摘要:
作者: #aaa4
板块: #跳蚤市场
编号:
282343帖子: https://linux.do/t/topic/282343
时间: 2024-12-05 10:20:46
摘要:
当时从坛友手里15刀收的, 但是最近工作忙, 没空部署网站, 成本价转让
0l.hk
标题: 长期收openai初创企业 2500账号 联系我 价格可谈
作者: #jewdore
板块: #跳蚤市场
编号:
帖子: https://linux.do/t/topic/282347
时间: 2024-12-05 10:21:59
摘要:
作者: #jewdore
板块: #跳蚤市场
编号:
282347帖子: https://linux.do/t/topic/282347
时间: 2024-12-05 10:21:59
摘要:
长期收openai 初创企业账号 2500, tg @jewdore,随时联系我
标题: 请教下私有化部署是我理解的嘛
作者: #Exx
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/282348
时间: 2024-12-05 10:22:08
摘要:
作者: #Exx
板块: #搞七捻三
编号:
282348帖子: https://linux.do/t/topic/282348
时间: 2024-12-05 10:22:08
摘要:
我司现在是PHP,小程序跟app
有客户想私有化部署到他们服务器,意思是我们倒闭他们还能用
那这个意思是不是PHP代码也直接部署到他们服务器
直接源码给不现实的吧?
如果是自己编译型语言就可以是吧
标题: 坐标北京,想参加中级软件设计师的软考,有啥资源或者经验推荐的吗?
作者: #ruicky
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/282353
时间: 2024-12-05 10:22:26
摘要:
作者: #ruicky
板块: #搞七捻三
编号:
282353帖子: https://linux.do/t/topic/282353
时间: 2024-12-05 10:22:26
摘要:
最近有些时间了,年近 30 想参加软考的中级软件设计师,用来满足工作居住证,来让将来小孩上学跟买房。所以各位大佬有什么资源或者途径的建议吗?
标题: 佬们 想问一下你们的 mac 有什么鼠标,怎么解决鼠标丝滑的使用不漂?
作者: #大道至简
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/282356
时间: 2024-12-05 10:24:55
摘要:
作者: #大道至简
板块: #开发调优
编号:
282356帖子: https://linux.do/t/topic/282356
时间: 2024-12-05 10:24:55
摘要:
最近公司发了 mac ,我之前是 win 的深度使用用户,现在还是想使用 鼠标?该买哪款鼠标 和优化细节?
标题: 佬友们快来摸鱼啦,分享几个摸鱼热榜
作者: #Yolodo
板块: #资源荟萃
编号:
帖子: https://linux.do/t/topic/282357
时间: 2024-12-05 10:24:57
摘要:
作者: #Yolodo
板块: #资源荟萃
编号:
282357帖子: https://linux.do/t/topic/282357
时间: 2024-12-05 10:24:57
摘要:
摸摸鱼热榜
支持登陆,登录后可以添加更多订阅,可以切换为学习模式,开启快乐摸鱼!tieba_109|30x30
NewsNow
仅支持 Github 登陆,界面 UI 漂亮,摸鱼也要摸得优雅!tieba_091|30x30
什么值得看
不支持登陆!tieba_088|30x30
标题: 无限暖暖开服啦!!!
作者: #陆桥屿
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/282359
时间: 2024-12-05 10:26:49
摘要:
作者: #陆桥屿
板块: #搞七捻三
编号:
282359帖子: https://linux.do/t/topic/282359
时间: 2024-12-05 10:26:49
摘要:
还是挺好玩的!