leetcode389. Find the Difference

网友投稿 626 2022-10-07

leetcode389. Find the Difference

leetcode389. Find the Difference

求出这两个串中一个不同的值。

开始想用multiset,后来想到string里也有find。

返回的索引值。所以用stringfind很好解决。

class Solution {public: char findTheDifference(string s, string t) { int n=s.size(); int n2=n+1; for(int i=0;i

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:微信小程序中密码输入框的设计代码(微信小程序文本框代码)
下一篇:SpringBoot使用spring.config.import多种方式导入配置文件
相关文章

 发表评论

暂时没有评论,来抢沙发吧~