Reverse Prefix of Word 给一个word, 给一个char, 求这个word开始到char的substring的反转后的结果. Date September 19, 2021 Category Leetcode Comments No Comments
Count Number of Pairs With Absolute Difference K 给一个数组, 和一个数字k, 求数组中的pair的个数, 他们的绝对值差等于k. 这题就存一下数字, 然后因为数字大小范围是[1,200], 所以直接算一下这个范围可能的结果即可. Date September 19, 2021 Category Leetcode Comments No Comments