Commit graph

129 commits

Author SHA1 Message Date
e7b9b16221
go: add «3392. Count Subarrays of Length Three With a Condition»
URL:	https://leetcode.com/problems/count-subarrays-of-length-three-with-a-condition/
Signed-off-by: Matej Focko <mfocko@redhat.com>
2025-04-27 14:32:29 +02:00
ede2fb14e5
chore(cs): be explicit about the package name + direnv
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-25 10:01:18 +02:00
d80984c7ce
chore(cs): add nix-shell
Signed-off-by: Matej Focko <mfocko@redhat.com>
2025-04-24 22:42:40 +02:00
421bdc6bf1
cs: add «2799. Count Complete Subarrays in an Array»
URL:	https://leetcode.com/problems/count-complete-subarrays-in-an-array/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-24 16:55:04 +02:00
0c40cf8cf8
cs: add «2145. Count the Hidden Sequences»
URL:	https://leetcode.com/problems/count-the-hidden-sequences/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-21 09:35:03 +02:00
02a57cd6f3
cs: add «2179. Count Good Triplets in an Array»
URL:	https://leetcode.com/problems/count-good-triplets-in-an-array/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-15 15:16:26 +02:00
80ae33d3d0
cs: add «1534. Count Good Triplets»
URL:	https://leetcode.com/problems/count-good-triplets/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-14 13:06:39 +02:00
aab8e6466e
cs: add «2843. Count Symmetric Integers»
URL:	https://leetcode.com/problems/count-symmetric-integers/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-11 09:45:36 +02:00
9754709bd4
cs: add «3375. Minimum Operations to Make Array Values Equal to K»
URL:	https://leetcode.com/problems/minimum-operations-to-make-array-values-equal-to-k/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-09 09:45:46 +02:00
5c40a25702
cs: add «15. 3Sum»
URL:	https://leetcode.com/problems/3sum/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-01 18:58:34 +02:00
41a581431d
cs: add «167. Two Sum II - Input Array Is Sorted»
URL:	https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-01 18:43:22 +02:00
bc4d09e949
cs: add «2503. Maximum Number of Points From Grid Queries»
URL:	https://leetcode.com/problems/maximum-number-of-points-from-grid-queries/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-28 12:56:15 +01:00
8fa1d853ff
cs: add «3394. Check if Grid can be Cut into Sections»
URL:	https://leetcode.com/problems/check-if-grid-can-be-cut-into-sections/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-25 15:53:13 +01:00
e0c94b7af4
cs: add «2115. Find All Possible Recipes from Given Supplies»
URL:	https://leetcode.com/problems/find-all-possible-recipes-from-given-supplies/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-21 23:02:05 +01:00
0f79fcd5ed
cs: add «139. Word Break»
URL:	https://leetcode.com/problems/word-break/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-03-20 17:59:18 +01:00
e3be56387e
cs: add «1790. Check if One String Swap Can Make Strings Equal»
URL:	https://leetcode.com/problems/check-if-one-string-swap-can-make-strings-equal/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-05 09:34:56 +01:00
747f728dc9
cs: add «1800. Maximum Ascending Subarray Sum»
URL:	https://leetcode.com/problems/maximum-ascending-subarray-sum/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-04 15:25:57 +01:00
5048736010
cs: add «3105. Longest Strictly Increasing or Strictly Decreasing Subarray»
URL:	https://leetcode.com/problems/longest-strictly-increasing-or-strictly-decreasing-subarray/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-03 15:41:24 +01:00
349e7a8914
cs: add «1752. Check if Array Is Sorted and Rotated»
URL:	https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-02 14:43:26 +01:00
1e2d16c0d5
cs: add «3151. Special Array I»
URL:	https://leetcode.com/problems/special-array-i/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-01 12:38:52 +01:00
1a3709064d
cs: add «827. Making A Large Island»
URL:	https://leetcode.com/problems/making-a-large-island/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-31 13:05:38 +01:00
0b43303a44
cs: add «684. Redundant Connection»
URL:	https://leetcode.com/problems/redundant-connection/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-29 23:57:22 +01:00
daf0a68499
cs: add «1462. Course Schedule IV»
URL:	https://leetcode.com/problems/course-schedule-iv/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-27 10:59:50 +01:00
854ec005a6
cs: add «1765. Map of Highest Peak»
URL:	https://leetcode.com/problems/map-of-highest-peak/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-22 22:50:46 +01:00
834ffcec73
cs: add «2661. First Completely Painted Row or Column»
URL:	https://leetcode.com/problems/first-completely-painted-row-or-column/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-20 11:41:36 +01:00
e02c4fda66
cs: add «2429. Minimize XOR»
URL:	https://leetcode.com/problems/minimize-xor/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-15 21:11:22 +01:00
5af8d632b2
cs: add «2657. Find the Prefix Common Array of Two Arrays»
Use ‹foreach› loop instead of a copy-pasta for checking both arrays at
the same time.

URL:	https://leetcode.com/problems/find-the-prefix-common-array-of-two-arrays/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-14 17:49:30 +01:00
f357df8fd6
cs: add «2657. Find the Prefix Common Array of Two Arrays»
URL:	https://leetcode.com/problems/find-the-prefix-common-array-of-two-arrays/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-14 17:47:53 +01:00
80974c503d
cs: add «1400. Construct K Palindrome Strings»
Count directly elements matching the parity check, do not prefilter and
count what's been included.

URL:	https://leetcode.com/problems/construct-k-palindrome-strings/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-11 19:14:18 +01:00
907856146c
cs: add «1400. Construct K Palindrome Strings»
URL:	https://leetcode.com/problems/construct-k-palindrome-strings/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-11 19:13:03 +01:00
083d7c3da1
cs: add «3042. Count Prefix and Suffix Pairs I»
URL:	https://leetcode.com/problems/count-prefix-and-suffix-pairs-i/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-08 21:28:05 +01:00
d2669c3687
cs: add «1769. Minimum Number of Operations to Move All Balls to Each Box»
URL:	https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-06 09:28:50 +01:00
eb0e5a5391
cs: add «1930. Unique Length-3 Palindromic Subsequences»
URL:	https://leetcode.com/problems/unique-length-3-palindromic-subsequences/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-04 12:12:57 +01:00
92c3e12aad
cs: add «189. Rotate Array»
URL:	https://leetcode.com/problems/rotate-array/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-03 18:52:43 +01:00
3a4809d6f8
cs: add «2270. Number of Ways to Split Array»
URL:	https://leetcode.com/problems/number-of-ways-to-split-array/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-03 10:29:36 +01:00
ec2d7fe842
cs: add «1422. Maximum Score After Splitting a String»
URL:	https://leetcode.com/problems/maximum-score-after-splitting-a-string/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-01 12:48:45 +01:00
5cc859c6b4
cs: add «2466. Count Ways To Build Good Strings»
URL:	https://leetcode.com/problems/count-ways-to-build-good-strings/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-30 16:30:54 +01:00
66281a6edf
cs: add «1639. Number of Ways to Form a Target String Given a Dictionary»
URL:	https://leetcode.com/problems/number-of-ways-to-form-a-target-string-given-a-dictionary/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-29 18:57:27 +01:00
b67d43c82e
cs: add «494. Target Sum»
URL:	https://leetcode.com/problems/target-sum/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-26 19:19:28 +01:00
1888a23f4e
cs: add «2471. Minimum Number of Operations to Sort a Binary Tree by Level»
URL:	https://leetcode.com/problems/minimum-number-of-operations-to-sort-a-binary-tree-by-level/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-23 22:19:08 +01:00
f0aa77436b
cs: add «769. Max Chunks To Make Sorted»
URL:	https://leetcode.com/problems/max-chunks-to-make-sorted/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-19 22:05:23 +01:00
1c25b8a606
cs: add «1792. Maximum Average Pass Ratio»
URL:	https://leetcode.com/problems/maximum-average-pass-ratio/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-15 23:02:40 +01:00
a4871df28e
cs: add «2981. Find Longest Special Substring That Occurs Thrice I»
URL:	https://leetcode.com/problems/find-longest-special-substring-that-occurs-thrice-i/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-10 23:49:05 +01:00
b4a300bec2
cs: add «1760. Minimum Limit of Balls in a Bag»
URL:	https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-07 23:56:23 +01:00
90a2ad8171
cs: add «2554. Maximum Number of Integers to Choose From a Range I»
URL:	https://leetcode.com/problems/maximum-number-of-integers-to-choose-from-a-range-i/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-06 22:57:34 +01:00
e5ef5167a7
cs: add «2825. Make String a Subsequence Using Cyclic Increments»
URL:	https://leetcode.com/problems/make-string-a-subsequence-using-cyclic-increments/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-04 13:41:16 +01:00
73c937b47a
cs: add «1233. Remove Sub-Folders from the Filesystem»
URL:	https://leetcode.com/problems/remove-sub-folders-from-the-filesystem/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-10-26 00:13:37 +02:00
18e176c3e6
cs: add «2583. Kth Largest Sum in a Binary Tree»
URL:	https://leetcode.com/problems/kth-largest-sum-in-a-binary-tree/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-10-22 22:22:44 +02:00
49e73d89e6
cs: add «1545. Find the Kth Bit in Nth Binary String»
URL:	https://leetcode.com/problems/find-kth-bit-in-nth-binary-string/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-10-19 11:36:12 +02:00
94390bbf94
cs: add «2044. Count Number of Maximum Bitwise-OR Subsets»
URL:	https://leetcode.com/problems/count-number-of-maximum-bitwise-or-subsets/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-10-18 11:01:20 +02:00