
LeetCode刷题
Houzhyan
What is insistence? That is,day after day,you tell yourself to go on for another day.
展开
-
LeetCode: 771. Jewels and Stones
https://leetcode.com/problems/jewels-and-stones/description/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 t...原创 2018-04-22 23:18:04 · 332 阅读 · 0 评论 -
LeetCode :7. Reverse Integer
https://leetcode.com/problems/reverse-integer/description/ Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123 Output: 321 Example 2:Input: -123 Output: -321 Example 3:In...原创 2018-04-23 15:51:03 · 220 阅读 · 0 评论 -
LeetCode : 1. Two Sum
给定一个整数数组和一个目标值,找出数组中和为目标值的两个数。你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用。示例:给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] Python3:class Solution: def twoSum(self, nums, ta...原创 2018-04-23 17:40:48 · 194 阅读 · 0 评论