Sliding Window Fixed Size Others¶ Table of Contents¶ 2269. Find the K-Beauty of a Number (Easy) 1984. Minimum Difference Between Highest and Lowest of K Scores (Easy) 220. Contains Duplicate III (Hard) 2269. Find the K-Beauty of a Number¶ LeetCode | 力扣 Tags: Math, String, Sliding Window Python def divisorSubstrings(num: int, k: int) -> int: numStr = str(num) n = len(numStr) res = 0 for i in range(n - k + 1): x = int(numStr[i : i + k]) if x > 0 and num % x == 0: res += 1 return res num = 240 k = 2 print(divisorSubstrings(num, k)) # 2 1984. Minimum Difference Between Highest and Lowest of K Scores¶ LeetCode | 力扣 Tags: Array, Sliding Window, Sorting 220. Contains Duplicate III¶ LeetCode | 力扣 Tags: Array, Sliding Window, Sorting, Bucket Sort, Ordered Set Comments