389. Find the Difference
来源:互联网 发布:淘宝衣服一元包邮 编辑:程序博客网 时间:2024/06/11 22:03
class Solution(object): def findTheDifference(self, s, t): """ :type s: str :type t: str :rtype: str """ dic ={} for it in s: dic[it] = dic.get(it,0)+1 for it in t: if dic.get(it,0) == 0: return it else: dic[it] -= 1
0 0
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference*
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- 389. Find the Difference
- Nrf51822 滴答时钟替代者 -- RTC
- 题三:二维数组查找
- Linux--RH134---unit 6 linux中常用的基础命令
- 微信小程序_微信小程序开发,小程序源码、案例、教程
- INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
- 389. Find the Difference
- React Native ListView sticky效果实现
- redis分布式锁安全性的探讨
- JaveScrip基础
- 一步一步在 Windows下搭建 React Native Android 开发环境
- office2016_windows永久激活查看方法
- TomCat之Filter小析
- teamviewer vpn+xp vpn服务实现在家访问公司内部局域网
- Oracle以及SQLServer的表和记录查询