Commit graph

108 commits

Author SHA1 Message Date
f8aa0eeb78
chore(kt): add nix-shell and envrc
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-25 15:01:10 +02:00
0298d61443
kt: add «1399. Count Largest Group»
URL:	https://leetcode.com/problems/count-largest-group/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-23 11:06:36 +02:00
7ab1e33ef5
kt: add «2338. Count the Number of Ideal Arrays»
URL:	https://leetcode.com/problems/count-the-number-of-ideal-arrays/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-22 08:37:47 +02:00
6b223e95b6
kt: add «781. Rabbits in Forest»
URL:	https://leetcode.com/problems/rabbits-in-forest/
2025-04-20 11:10:27 +02:00
2fa0295ff1
kt: refactor «3272. Find the Count of Good Integers»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-12 11:41:24 +02:00
3b04cd9900
kt: add «3272. Find the Count of Good Integers»
URL:	https://leetcode.com/problems/find-the-count-of-good-integers/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-12 11:27:33 +02:00
e95583b334
kt: add «3396. Minimum Number of Operations to Make Elements in Array Distinct»
URL:	https://leetcode.com/problems/minimum-number-of-operations-to-make-elements-in-array-distinct/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-08 19:49:10 +02:00
e4932de4b6
kt: add «416. Partition Equal Subset Sum»
URL:	https://leetcode.com/problems/partition-equal-subset-sum/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-07 12:20:00 +02:00
c6b7b034de
kt: add «1123. Lowest Common Ancestor of Deepest Leaves»
URL:	https://leetcode.com/problems/lowest-common-ancestor-of-deepest-leaves/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-04 12:35:18 +02:00
d9fbfffbe2
kt: add «2140. Solving Questions With Brainpower»
URL:	https://leetcode.com/problems/solving-questions-with-brainpower/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-01 09:38:23 +02:00
efff2000aa
kt: add «2551. Put Marbles in Bags»
URL:	https://leetcode.com/problems/put-marbles-in-bags/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-31 08:40:12 +02:00
76d3e0eab1
kt: add «763. Partition Labels»
URL:	https://leetcode.com/problems/partition-labels/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-30 13:36:09 +02:00
3a02219766
kt: add «2033. Minimum Operations to Make a Uni-Value Grid»
URL:	https://leetcode.com/problems/minimum-operations-to-make-a-uni-value-grid/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-26 08:29:21 +01:00
ea2ef69f1f
kt: add «2685. Count the Number of Complete Components»
URL:	https://leetcode.com/problems/count-the-number-of-complete-components/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-22 23:22:58 +01:00
ba5a9515ba
kt: add «322. Coin Change»
URL:	https://leetcode.com/problems/coin-change/
2025-03-20 15:24:41 +01:00
790eeb39ef
kt: add «2401. Longest Nice Subarray»
URL:	https://leetcode.com/problems/longest-nice-subarray/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-18 19:08:40 +01:00
6cda50188b
kt: add «2560. House Robber IV»
URL:	https://leetcode.com/problems/house-robber-iv/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-17 11:20:03 +01:00
f173ae8c3c
kt: add «2226. Maximum Candies Allocated to K Children»
URL:	https://leetcode.com/problems/maximum-candies-allocated-to-k-children/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-14 18:26:26 +01:00
3f4a94d02a
kt: add «3306. Count of Substrings Containing Every Vowel and K Consonants II»
URL:	https://leetcode.com/problems/count-of-substrings-containing-every-vowel-and-k-consonants-ii/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-10 18:13:12 +01:00
44a7d16cd9
kt: add «3208. Alternating Groups II»
URL:	https://leetcode.com/problems/alternating-groups-ii/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-09 20:40:28 +01:00
a57370bdd8
kt: add «2379. Minimum Recolors to Get K Consecutive Black Blocks»
URL:	https://leetcode.com/problems/minimum-recolors-to-get-k-consecutive-black-blocks/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-08 11:19:33 +01:00
bc6b2af9e7
kt: add «2523. Closest Prime Numbers in Range»
URL:	https://leetcode.com/problems/closest-prime-numbers-in-range/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-07 09:41:29 +01:00
0897005fdd
kt: add «2965. Find Missing and Repeated Values»
URL:	https://leetcode.com/problems/find-missing-and-repeated-values/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-06 09:39:16 +01:00
e147651e12
kt: add «125. Valid Palindrome»
URL:	https://leetcode.com/problems/valid-palindrome/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-05 22:35:34 +01:00
fb06fb1fc6
kt: add «14. Longest Common Prefix»
URL:	https://leetcode.com/problems/longest-common-prefix/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-05 20:21:29 +01:00
989f2b071e
kt: add «12. Integer to Roman»
URL:	https://leetcode.com/problems/integer-to-roman/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-05 19:01:30 +01:00
7ee0a7cce6
kt: add «2579. Count Total Number of Colored Cells»
URL:	https://leetcode.com/problems/count-total-number-of-colored-cells/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-05 09:26:30 +01:00
513547c2f2
kt: add «1780. Check if Number is a Sum of Powers of Three»
URL:	https://leetcode.com/problems/check-if-number-is-a-sum-of-powers-of-three/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-04 09:38:55 +01:00
9eff71a1a7
kt: add «2161. Partition Array According to Given Pivot»
URL:	https://leetcode.com/problems/partition-array-according-to-given-pivot/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-03 20:37:46 +01:00
667b9abb98
kt: add «2570. Merge Two 2D Arrays by Summing Values»
URL:	https://leetcode.com/problems/merge-two-2d-arrays-by-summing-values/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-02 16:40:34 +01:00
18278624e8
kt: add «2460. Apply Operations to an Array»
URL:	https://leetcode.com/problems/apply-operations-to-an-array/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-01 13:52:50 +01:00
49aed412b8
kt: add «1092. Shortest Common Supersequence»
URL:	https://leetcode.com/problems/shortest-common-supersequence/
2025-02-28 08:58:44 +01:00
c1c49bfcfe
kt: add «873. Length of Longest Fibonacci Subsequence»
URL:	https://leetcode.com/problems/length-of-longest-fibonacci-subsequence/
2025-02-27 10:14:37 +01:00
c4a58d7d79
kt: add «1749. Maximum Absolute Sum of Any Subarray»
URL:	https://leetcode.com/problems/maximum-absolute-sum-of-any-subarray/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-26 09:39:49 +01:00
2b57831852
kt: add «1524. Number of Sub-arrays With Odd Sum»
URL:	https://leetcode.com/problems/number-of-sub-arrays-with-odd-sum/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-25 15:41:11 +01:00
7f84417da5
kt: add «2467. Most Profitable Path in a Tree»
URL:	https://leetcode.com/problems/most-profitable-path-in-a-tree/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-24 10:23:04 +01:00
941a9a13c7
kt: add «889. Construct Binary Tree from Preorder and Postorder Traversal»
URL:	https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-23 20:51:19 +01:00
2c0920d14e
kt: add «1028. Recover a Tree From Preorder Traversal»
URL:	https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-23 20:42:11 +01:00
359ff970a5
kt: add «1261. Find Elements in a Contaminated Binary Tree»
URL:	https://leetcode.com/problems/find-elements-in-a-contaminated-binary-tree/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-21 15:13:26 +01:00
1c60b8cabd
kt: keep ‹TreeNode› only once
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-21 14:58:55 +01:00
9fbca34230
kt: add «1980. Find Unique Binary String»
URL:	https://leetcode.com/problems/find-unique-binary-string/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-20 11:11:23 +01:00
b4ae6a0820
kt: add «1415. The k-th Lexicographical String of All Happy Strings of Length n»
URL:	https://leetcode.com/problems/the-k-th-lexicographical-string-of-all-happy-strings-of-length-n/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-19 08:18:11 +01:00
4473b4b6eb
kt: add «2375. Construct Smallest Number From DI String»
URL:	https://leetcode.com/problems/construct-smallest-number-from-di-string/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-18 14:57:42 +01:00
c849923112
kt: add «1079. Letter Tile Possibilities»
URL:	https://leetcode.com/problems/letter-tile-possibilities/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-17 18:50:55 +01:00
e2fbb6bd5b
kt: add «1718. Construct the Lexicographically Largest Valid Sequence»
URL:	https://leetcode.com/problems/construct-the-lexicographically-largest-valid-sequence/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-16 21:02:05 +01:00
dcfa7705c5
kt: add «2698. Find the Punishment Number of an Integer»
URL:	https://leetcode.com/problems/find-the-punishment-number-of-an-integer/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-15 11:14:29 +01:00
e0a3d6a21c
kt: add «1352. Product of the Last K Numbers»
URL:	https://leetcode.com/problems/product-of-the-last-k-numbers/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-14 11:44:01 +01:00
3fd3eb1f4d
kt: add «2342. Max Sum of a Pair With Equal Sum of Digits»
URL:	https://leetcode.com/problems/max-sum-of-a-pair-with-equal-sum-of-digits/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-12 22:32:31 +01:00
fa27bdd99c
kt: add «1910. Remove All Occurrences of a Substring»
URL:	https://leetcode.com/problems/remove-all-occurrences-of-a-substring/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-11 14:33:15 +01:00
3425681c53
kt: add «3174. Clear Digits»
URL:	https://leetcode.com/problems/clear-digits/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-10 08:54:23 +01:00