
TwoPoints
ep_mashiro
日拱一卒,功不唐捐
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode_Minimum Size Subarray Sum
Tag Array\Two Pointers\Binary Search Difficulty Medium Description Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum原创 2017-02-27 20:26:48 · 297 阅读 · 0 评论 -
Leetcode_Move Zeroes
Tag: Array、Two Pointers Difficulty: Medium Description: Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements. For e原创 2017-02-26 13:56:38 · 227 阅读 · 0 评论 -
Leetcode_Two Sum II - Input array is sorted
Tag Array\Two Pointers\Binary Search Difficulty Easy Description Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target n原创 2017-02-27 11:08:56 · 300 阅读 · 0 评论 -
Leetcode_Merge Sorted Array
Tag Array Difficulty Easy Description Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enough space (size that is原创 2017-02-27 12:43:19 · 291 阅读 · 0 评论 -
Leetcode TwoPointer知识点总结
344. Reverse String:字符串转置,Easy 定义头尾指针,调换对应的字符 class Solution(object): def reverseString(self, s): """ :type s: str :rtype: str """ s = list(s...原创 2018-04-18 15:10:08 · 503 阅读 · 0 评论