leetcode-389. Find the Difference
来源:互联网 发布:出货单打单软件 编辑:程序博客网 时间:2024/05/17 00:55
2017年1月2日
https://leetcode.com/problems/find-the-difference/
class Solution {public: char findTheDifference(string s, string t) { for(int i=1;i<s.size();i++) { s[i]^=(s[i-1]^t[i-1]); } return s[s.size()-1]^t[t.size()-1]^t[t.size()-2]; }};
0 0
- LeetCode : 389. Find the Difference
- Leetcode 389. Find the Difference
- 【leetcode】389. Find the Difference
- Leetcode 389. Find the Difference
- LeetCode 389. Find the Difference
- LeetCode 389. Find the Difference
- [LeetCode]389. Find the Difference
- [LeetCode]--389. Find the Difference
- leetcode 389. Find the Difference
- LeetCode 389. Find the Difference
- LeetCode 389. Find the Difference
- leetcode 389. Find the Difference
- 389.[LeetCode]Find the Difference
- 【LeetCode】 389. Find the Difference
- [LeetCode]389. Find the Difference
- leetcode-389. Find the Difference
- Leetcode 389. Find the Difference
- LeetCode 389. Find the Difference
- SpringMVC访问静态资源的三种方式
- ZCMU—1465
- U盘安装Windows和Ubuntu 15.04双系统图解教程
- js客户端加密
- 会场安排问题
- leetcode-389. Find the Difference
- c++ const
- HDU 1853 Cyclic Tour(最佳二分图匹配寻找图中的环)
- python学习笔记(四)
- Matlab 4. Matlab2016 不能保存数据(变量)的解决方法(中文版)-v7.3 switch
- 用网页代替Android的交互页面
- 递归与分治策略
- 使用ant编译android工程遇到的问题
- 计算机网络学习笔记概述-1