![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leetcode
文章平均质量分 62
cheney康
中山大学计算机学院研究生
展开
-
【Leetcode】1. Two sum
Two sum class Solution: def twoSum(self, nums, target): dict={} for i in range(len(nums)): if target -nums[i] in dict: return [dict[target -nums[i]],i]...原创 2018-02-10 16:56:29 · 202 阅读 · 0 评论 -
【LeetCode】728. Self Dividing Numbers
728. Self Dividing Numbershttps://leetcode.com/problems/self-dividing-numbers/description/A self-dividing number is a number that is divisible by every digit it contains.For example, 128 is a self-div...原创 2018-03-30 00:11:13 · 280 阅读 · 0 评论 -
【Leetcode】83. Remove Duplicates from Sorted List
leecode 地址:https://leetcode.com/problems/remove-duplicates-from-sorted-list/description/Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1-&g...原创 2018-03-25 23:05:41 · 154 阅读 · 0 评论 -
【Leetcode】804. Unique Morse Code Words
804. Unique Morse Code Wordshttps://leetcode.com/problems/unique-morse-code-words/description/International Morse Code defines a standard encoding where each letter is mapped to a series of dots and d...原创 2018-03-27 00:12:53 · 997 阅读 · 0 评论 -
【Leetcode】771. Jewels and Stones
771. Jewels and StonesYou'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 stone you have. You want to kn...原创 2018-03-27 19:49:53 · 211 阅读 · 0 评论 -
【Leetcode】461. Hamming Distance
461. Hamming Distancehttps://leetcode.com/problems/hamming-distance/description/The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given...原创 2018-03-27 23:45:26 · 214 阅读 · 0 评论 -
【Leetcode】806. Number of Lines To Write String
806. Number of Lines To Write StringWe are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width...原创 2018-03-28 19:39:16 · 357 阅读 · 0 评论 -
【Leetcode】617. Merge Two Binary Trees
617. Merge Two Binary TreesGiven two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.You need to merge th...原创 2018-03-28 22:39:28 · 167 阅读 · 0 评论