Commit graph

836 commits

Author SHA1 Message Date
0da1240d26
kt: add «452. Minimum Number of Arrows to Burst Balloons»
URL:	https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-09 22:54:39 +01:00
788199789d
kt: add «2364. Count Number of Bad Pairs»
URL:	https://leetcode.com/problems/count-number-of-bad-pairs/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-09 14:09:34 +01:00
f15c12a030
kt: add «11. Container With Most Water»
URL:	https://leetcode.com/problems/container-with-most-water/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-08 23:44:24 +01:00
17451369aa
kt: add «392. Is Subsequence»
URL:	https://leetcode.com/problems/is-subsequence/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-08 23:39:01 +01:00
589ae3bcea
kt: add «150. Evaluate Reverse Polish Notation»
URL:	https://leetcode.com/problems/evaluate-reverse-polish-notation/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-08 23:25:40 +01:00
d7e8cc6f46
kt: add «141. Linked List Cycle»
URL:	https://leetcode.com/problems/linked-list-cycle/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-08 23:10:33 +01:00
adacef4da5
kt: add «21. Merge Two Sorted Lists»
URL:	https://leetcode.com/problems/merge-two-sorted-lists/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-08 23:06:53 +01:00
44e82181c3
go: add «2349. Design a Number Container System»
URL:	https://leetcode.com/problems/design-a-number-container-system/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-08 21:29:56 +01:00
96b8b4580e
kt: add «3160. Find the Number of Distinct Colors Among the Balls»
URL:	https://leetcode.com/problems/find-the-number-of-distinct-colors-among-the-balls/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-07 10:21:05 +01:00
1ca11ef95b
kt: add «300. Longest Increasing Subsequence»
URL:	https://leetcode.com/problems/longest-increasing-subsequence/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-06 22:18:48 +01:00
734cb7d959
kt: add «198. House Robber»
URL:	https://leetcode.com/problems/house-robber/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-06 22:06:39 +01:00
676b7e2262
kt: add «70. Climbing Stairs»
URL:	https://leetcode.com/problems/climbing-stairs/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-06 21:59:59 +01:00
e6e431d528
kt: add «1726. Tuple with Same Product»
URL:	https://leetcode.com/problems/tuple-with-same-product/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-06 15:17:44 +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
1f6394137d
kt: add «58. Length of Last Word»
URL:	https://leetcode.com/problems/length-of-last-word/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-04 21:22:59 +01:00
a28c619756
kt: add «151. Reverse Words in a String»
URL:	https://leetcode.com/problems/reverse-words-in-a-string/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-02-04 21:20:29 +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
0cd2d639f1
go: add «2493. Divide Nodes Into the Maximum Number of Groups»
URL:	https://leetcode.com/problems/divide-nodes-into-the-maximum-number-of-groups/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-30 14:50:58 +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
e6e6860da0
go: add «2658. Maximum Number of Fish in a Grid»
URL:	https://leetcode.com/problems/maximum-number-of-fish-in-a-grid/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-28 11:48:45 +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
b9ba3ba6a9
go: add «2127. Maximum Employees to Be Invited to a Meeting»
URL:	https://leetcode.com/problems/maximum-employees-to-be-invited-to-a-meeting/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-27 10:26:57 +01:00
dd48e58a2c
cpp: add «2948. Make Lexicographically Smallest Array by Swapping Elements»
URL:	https://leetcode.com/problems/make-lexicographically-smallest-array-by-swapping-elements/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-26 11:14:17 +01:00
a67853e75f
go: add «2948. Make Lexicographically Smallest Array by Swapping Elements»
URL:	https://leetcode.com/problems/make-lexicographically-smallest-array-by-swapping-elements/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-25 23:39:54 +01:00
3c9810e7de
java: add «802. Find Eventual Safe States»
URL:	https://leetcode.com/problems/find-eventual-safe-states/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-24 17:45:57 +01:00
c5653d345f
go: add «1267. Count Servers that Communicate»
URL:	https://leetcode.com/problems/count-servers-that-communicate/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-23 10:46:31 +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
c6bacfc1d9
go: add «2017. Grid Game»
URL:	https://leetcode.com/problems/grid-game/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-21 17:21:38 +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
5b21547fd7
java: add «407. Trapping Rain Water II»
Refactor to use attributes on the ‹Solution› class instead of passing
everything around…

URL:	https://leetcode.com/problems/trapping-rain-water-ii/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-19 22:12:14 +01:00
00992317e8
java: add «407. Trapping Rain Water II»
URL:	https://leetcode.com/problems/trapping-rain-water-ii/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-19 22:03:55 +01:00
cbfe2ea6a8
go: add «1368. Minimum Cost to Make at Least One Valid Path in a Grid»
URL:	https://leetcode.com/problems/minimum-cost-to-make-at-least-one-valid-path-in-a-grid/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-19 13:58:21 +01:00
6faa91bc6d
java: add «2683. Neighboring Bitwise XOR»
URL:	https://leetcode.com/problems/neighboring-bitwise-xor/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-17 18:05:53 +01:00
9565215eba
go: add «2425. Bitwise XOR of All Pairings»
URL:	https://leetcode.com/problems/bitwise-xor-of-all-pairings/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-16 16:40:16 +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
0ca8344c5a
go: add «3223. Minimum Length of String After Operations»
URL:	https://leetcode.com/problems/minimum-length-of-string-after-operations/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-13 11:53:04 +01:00
61dfb7cbd5
go: add «2116. Check if a Parentheses String Can Be Valid»
URL:	https://leetcode.com/problems/check-if-a-parentheses-string-can-be-valid/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-12 18:45:06 +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
6713133429
java: add «916. Word Subsets»
URL:	https://leetcode.com/problems/word-subsets/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-11 00:06:06 +01:00
07f0ad8512
java: add «916. Word Subsets»
Status: Time Limit Exceeded
URL:	https://leetcode.com/problems/word-subsets/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-11 00:03:04 +01:00
9608f3259b
java: add «42. Trapping Rain Water»
URL:	https://leetcode.com/problems/trapping-rain-water/
2025-01-09 20:48:09 +01:00
b12e923384
java: add «2185. Counting Words With a Given Prefix»
Refactor to stream.

URL:	https://leetcode.com/problems/counting-words-with-a-given-prefix/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-09 10:46:25 +01:00
58f88d7db9
java: add «2185. Counting Words With a Given Prefix»
URL:	https://leetcode.com/problems/counting-words-with-a-given-prefix/
Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-01-09 10:45:41 +01:00