https://leetcode.com/problems/count-the-number-of-ideal-arrays/description/
Arrays a[i] % a[i - 1] == 0, i..n, a[i]..max #hard #combinatorics
Arrays a[i] % a[i - 1] == 0, i..n, a[i]..max #hard #combinatorics
👍3
https://leetcode.com/problems/count-subarrays-with-fixed-bounds/description
Subarrays with min=minK, max=maxK #hard #two_pointers
Subarrays with min=minK, max=maxK #hard #two_pointers
👍3
https://leetcode.com/problems/count-subarrays-with-score-less-than-k/description/
Subarrays sum * cnt <= k #hard #two_pointers
Subarrays sum * cnt <= k #hard #two_pointers
👍4
Tasks can be done by workers with pills #hard #binary_search
https://leetcode.com/problems/maximum-number-of-tasks-you-can-assign/description
https://leetcode.com/problems/maximum-number-of-tasks-you-can-assign/description
👍3
Permutations of even-odd position sums equal #hard #dp #math
https://leetcode.com/problems/count-number-of-balanced-permutations/description/
https://leetcode.com/problems/count-number-of-balanced-permutations/description/
👍2
t
steps to convert char into next nums[c] chars #hard #dp #mathhttps://leetcode.com/problems/total-characters-in-string-after-transformations-ii/description
👍2
https://leetcode.com/problems/painting-a-grid-with-three-different-colors/description
Ways to 3-color m*n grid, no adjucents #hard #dp #matrix
Ways to 3-color m*n grid, no adjucents #hard #dp #matrix
👍3
https://leetcode.com/problems/find-the-maximum-sum-of-node-values/description/
Max sum by k-xoring edges #hard #tree #dp
Max sum by k-xoring edges #hard #tree #dp
👍2
https://leetcode.com/problems/largest-color-value-in-a-directed-graph/description/
Max color freq path #hard #dp #toposort
Max color freq path #hard #dp #toposort
👍2🔥1
Max even-edged siblings after merging trees #hard #graph
https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-ii/description
https://leetcode.com/problems/maximize-the-number-of-target-nodes-after-connecting-trees-ii/description
👍1
https://leetcode.com/problems/maximum-candies-you-can-get-from-boxes/description
Open boxes graph with keys simulation #hard
Open boxes graph with keys simulation #hard
👍2
# 09.06.2025
[440. K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/description/) hard
k-th lexicographical number of 1..n #hard
[440. K-th Smallest in Lexicographical Order](https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/description/) hard
k-th lexicographical number of 1..n #hard
👍2
# 11.06.2025
[3445. Maximum Difference Between Even and Odd Frequency II](https://leetcode.com/problems/maximum-difference-between-even-and-odd-frequency-ii/description) hard
Max odd - min even frequency, window at least k #hard
[3445. Maximum Difference Between Even and Odd Frequency II](https://leetcode.com/problems/maximum-difference-between-even-and-odd-frequency-ii/description) hard
Max odd - min even frequency, window at least k #hard
👍2
# 17.06.2025
[3405. Count the Number of Arrays with K Matching Adjacent Elements](https://leetcode.com/problems/count-the-number-of-arrays-with-k-matching-adjacent-elements/description/) hard
Combinations k equal siblings 1..m in [n] array #hard #combinatorics #math
[3405. Count the Number of Arrays with K Matching Adjacent Elements](https://leetcode.com/problems/count-the-number-of-arrays-with-k-matching-adjacent-elements/description/) hard
Combinations k equal siblings 1..m in [n] array #hard #combinatorics #math
👍2
# 23.06.2025
[2081. Sum of k-Mirror Numbers](https://leetcode.com/problems/sum-of-k-mirror-numbers/description) hard
n palindromes in both 10 and k-base #hard #math
[2081. Sum of k-Mirror Numbers](https://leetcode.com/problems/sum-of-k-mirror-numbers/description) hard
n palindromes in both 10 and k-base #hard #math
👍2
# 25.06.2025
[2040. Kth Smallest Product of Two Sorted Arrays](https://leetcode.com/problems/kth-smallest-product-of-two-sorted-arrays/description/) hard
K-th increasing product from two arrays #hard #binary_search
[2040. Kth Smallest Product of Two Sorted Arrays](https://leetcode.com/problems/kth-smallest-product-of-two-sorted-arrays/description/) hard
K-th increasing product from two arrays #hard #binary_search
👍2
# 27.06.2025
[2014. Longest Subsequence Repeated k Times](https://leetcode.com/problems/longest-subsequence-repeated-k-times/description/) hard
Longest k-repeating subsequence #hard #backtracking
[2014. Longest Subsequence Repeated k Times](https://leetcode.com/problems/longest-subsequence-repeated-k-times/description/) hard
Longest k-repeating subsequence #hard #backtracking
👍2
# 2.07.2025
[3333. Find the Original Typed String II](https://leetcode.com/problems/find-the-original-typed-string-ii/description/) hard
ways to remove duplicates, preserve length at least k #hard #dp
[3333. Find the Original Typed String II](https://leetcode.com/problems/find-the-original-typed-string-ii/description/) hard
ways to remove duplicates, preserve length at least k #hard #dp
👍1
# 4.07.2025
[3307. Find the K-th Character in String Game II](https://leetcode.com/problems/find-the-k-th-character-in-string-game-ii/description) hard
kth char in double+shift by ops[i] string #hard #bit_manipulation
[3307. Find the K-th Character in String Game II](https://leetcode.com/problems/find-the-k-th-character-in-string-game-ii/description) hard
kth char in double+shift by ops[i] string #hard #bit_manipulation
👍2