![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HashTable
伊萨卡钢琴家
这个作者很懒,什么都没留下…
展开
-
Leetcode 1. Two Sum
question Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to t原创 2016-01-23 14:07:00 · 239 阅读 · 0 评论 -
Leetcode 242. Valid Anagram
Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat", t = "car", return false. 同形词,实质是统计在单词中每个字符出原创 2016-01-25 05:45:48 · 268 阅读 · 0 评论 -
Leetcode 36. Valid Sudoku
Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.'. 数独的规则是同行,同列,或者是每一个小原创 2016-01-25 05:51:01 · 253 阅读 · 0 评论 -
Leetcode HashTable 题型总结
HashSet 来检测数组元素的唯一性 36. Valid Sudoku https://leetcode.com/problems/valid-sudoku/ 136. Single Number https://leetcode.com/problems/single-number/应该使用位运算30. Substring with Concatenation of原创 2016-01-25 06:34:00 · 568 阅读 · 0 评论