LeetCode 389. Find the Difference
来源:互联网 发布:二维数组冒泡排序 编辑:程序博客网 时间:2024/04/29 05:09
public class Solution { public char findTheDifference(String s, String t) { char[] sToChars = s.toCharArray(); char[] tToChars = t.toCharArray(); char r = '\0'; for (int i = 0; i < sToChars.length; i++) r = (char)(r ^ sToChars[i]); for (int i = 0; i < tToChars.length; i++) r = (char)(r ^ tToChars[i]); return r; }}
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
- Bootstrap3modal嵌套|模态框嵌套滚动条bug
- android系统旋转方向定制问题
- caffe 安装
- MFC六大核心机制之四:永久保存(串行化)
- 二叉树的重建--已知中序和前序或中序和后序逆向构建二叉树
- LeetCode 389. Find the Difference
- Java8 Default Methods和Static Methods 详细介绍
- 启动mysql 失败,“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' ”
- OkHttp Recipes
- Oracle和MySql中将一个表中的数据插入到另一张表
- SpringBoot+Maven项目实战(5):集成分页插件
- python2.7 简易爬虫实现1
- LeetCode 226. Invert Binary Tree
- ip地址 子网掩码 网关