随笔分类 -  HashSet

哈希
[Leetcode 217&219]寻找数组中的重复值Contains Duplicate I & II
摘要:【题目1】 Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in t 阅读全文
posted @ 2018-11-26 20:00 alau 阅读(133) 评论(0) 推荐(0)
[Leetcode 771]宝石和石子 Jewels and Stones HashSet简单应用
摘要:【题目】 You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of 阅读全文
posted @ 2018-11-18 10:23 alau 阅读(81) 评论(0) 推荐(0)