双指针
文章平均质量分 61
双指针
libulala
算法练习
展开
-
Bound Found
Bound Found Signals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and Space Administration (that must be going through a defiant phase: “But I want to use feet, not meters!”). Each signal seems to come in tw原创 2021-02-10 09:20:23 · 119 阅读 · 0 评论 -
Subsequence
Subsequence A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subsequence of consecutive elements of原创 2021-02-10 09:15:00 · 102 阅读 · 0 评论 -
string
string There is a string S.S only contain lower case English character.(10≤length(S)≤1,000,000) How many substrings there are that contain at least k(1≤k≤26) distinct characters? Input There are multiple test cases. The first line of input contains an inte原创 2021-02-10 09:03:35 · 61 阅读 · 0 评论