904. Fruit Into Baskets

原题链接 In a row of trees, the i-th tree produces fruit with type tree[i]. You start at any tree of your choice, then repeatedly perform the following 窗口法 Leetcode 2019年10月26日 33次浏览

567. Permutation in String

原题链接 Given two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first string's pe Leetcode 窗口法 2019年10月24日 32次浏览

992. Subarrays with K Different Integers

原题链接 Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different integers in Leetcode 窗口法 2019年10月24日 36次浏览

480. Sliding Window Median

原题链接 Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of Leetcode 窗口法 2019年10月24日 32次浏览

424. Longest Repeating Character Replacemen

Given a string s that consists of only uppercase English letters, you can perform at most k operations on that string. In one operation, you can choos Leetcode 窗口法 2019年10月23日 31次浏览

Shell笔记

目录相关 https://www.cnblogs.com/DreamDrive/p/7706585.html shell 2019年10月22日 33次浏览

1235. Maximum Profit in Job Scheduling

We have n jobs, where every job is scheduled to be done from startTime[i] to endTime[i], obtaining a profit of profit[i]. You're given the startTime , Leetcode 动态规划 2019年10月20日 81次浏览

1234. Replace the Substring for Balanced String

You are given a string containing only 4 kinds of characters 'Q', 'W', 'E' and 'R'. A string is said to be balanced if each of its characters appears Leetcode 2019年10月20日 137次浏览

1233. Remove Sub-Folders from the Filesystem

Given a list of folders, remove all sub-folders in those folders and return in any order the folders after removing. If a folder[i] is located within Leetcode 2019年10月20日 118次浏览

1232. Check If It Is a Straight Line

You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight Leetcode 2019年10月20日 106次浏览