![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
kidpea_lau
这个作者很懒,什么都没留下…
展开
-
Python :compute two arrays‘ intersection
Given two arrays, write a function to compute their intersection.给定两个数组,编写一个函数来计算它们的交集。EX1:Input: nums1 = [1,2,2,1], nums2 = [2,2]Output: [2,2]EX2:Input: nums1 = [4,9,5], nums2 = [9,4,9...原创 2019-04-16 21:31:10 · 350 阅读 · 0 评论 -
字符串中的第一个唯一字符 find the first non-repeating character
--Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.--给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。s = "leetcode"返回 0.s = "lov...原创 2019-04-17 04:02:11 · 610 阅读 · 0 评论