摘要: Leetcode.76 Minimum Window Substring Given a string S and a string T, find the minimum window in S which will contain all the characters in T in compl 阅读全文
posted @ 2020-08-11 15:34 mhp 阅读(124) 评论(0) 推荐(0)
摘要: Leetcode.438 Find All Anagrams in a String Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consist 阅读全文
posted @ 2020-08-11 15:29 mhp 阅读(75) 评论(0) 推荐(0)
摘要: Leetcode.3 Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examp 阅读全文
posted @ 2020-08-11 15:27 mhp 阅读(83) 评论(0) 推荐(0)
摘要: Leetcode.209 Minimum Size Subarray Sum( Java) Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous 阅读全文
posted @ 2020-08-09 13:07 mhp 阅读(118) 评论(0) 推荐(0)
摘要: Leetcode.11 Container With Most Water Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical 阅读全文
posted @ 2020-08-07 10:25 mhp 阅读(80) 评论(0) 推荐(0)
摘要: Leetcode.345 Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hell 阅读全文
posted @ 2020-08-06 09:06 mhp 阅读(171) 评论(0) 推荐(0)
摘要: leetcode.344 Reverse String Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra 阅读全文
posted @ 2020-08-05 16:32 mhp 阅读(94) 评论(0) 推荐(0)
摘要: Leetcode.125 Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For 阅读全文
posted @ 2020-08-04 13:03 mhp 阅读(91) 评论(0) 推荐(0)
摘要: leetcode.167 Two Sum II - Input array is sorted Given an array of integers that is already *sorted in ascending order*, find two numbers such that the 阅读全文
posted @ 2020-08-04 10:31 mhp 阅读(89) 评论(0) 推荐(0)
摘要: Leetcode.88 Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elemen 阅读全文
posted @ 2020-08-03 12:35 mhp 阅读(117) 评论(0) 推荐(0)