leetcode.cn 2026-11-04
🔴3505.minimum-operations-to-make-elements-within-k-subarrays-equal
🏷️ Tags
#array #hash_table #math #dynamic_programming #sliding_window #heap_priority_queue
🔴3505.minimum-operations-to-make-elements-within-k-subarrays-equal
🏷️ Tags
#array #hash_table #math #dynamic_programming #sliding_window #heap_priority_queue
Telegraph
minimum-operations-to-make-elements-within-k-subarrays-equal
给你一个整数数组 nums 和两个整数 x 和 k。你可以执行以下操作任意次(包括零次):
leetcode.com 2026-11-04
🔴3505.minimum-operations-to-make-elements-within-k-subarrays-equal
🏷️ Tags
#array #hash_table #math #dynamic_programming #sliding_window #heap_priority_queue
🔴3505.minimum-operations-to-make-elements-within-k-subarrays-equal
🏷️ Tags
#array #hash_table #math #dynamic_programming #sliding_window #heap_priority_queue
Telegraph
minimum-operations-to-make-elements-within-k-subarrays-equal
You are given an integer array nums and two integers, x and k. You can perform the following operation any number of times (including zero):
leetcode.cn 2026-11-05
🟢1385.find-the-distance-value-between-two-arrays
🏷️ Tags
#array #two_pointers #binary_search #sorting
🟢1385.find-the-distance-value-between-two-arrays
🏷️ Tags
#array #two_pointers #binary_search #sorting
Telegraph
find-the-distance-value-between-two-arrays
给你两个整数数组 arr1 , arr2 和一个整数 d ,请你返回两个数组之间的 距离值 。 「距离值」 定义为符合此距离要求的元素数目:对于元素 arr1[i] ,不存在任何元素 arr2[j] 满足 |arr1[i]-arr2[j]| <= d 。 示例 1: 输入:arr1 = [4,5,8], arr2 = [10,9,1,8], d = 2 输出:2 解释: 对于 arr1[0]=4 我们有: |4-10|=6 > d=2 |4-9|=5 > d=2 |4-1|=3 > d=2 |4-8|=4…