B. Replace and Keep Sorted前缀和
B. Replace and Keep Sorted前缀和
Given a positive integer k, two arrays are called k-similar if:
they are strictly increasing;
they have the same length;
all their elements are positive integers between 1 and k (inclusive);
they differ in exactly one position
原创
2021-02-14 10:03:25 ·
1366 阅读 ·
0 评论