1
0
Fork 0
mirror of https://gitlab.com/mfocko/LeetCode.git synced 2024-11-14 01:49:41 +01:00
Commit graph

439 commits

Author SHA1 Message Date
2cd90d0db7
cpp: try ‹2092. Find All People With Secret›
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-24 23:24:11 +01:00
231b55ed58
chore(cpp): add GTest support
* Compile with ‹_MF_TEST› macro
* Link the GTest library

Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-24 23:23:12 +01:00
d924020c46
rs: add «787. Cheapest Flights Within K Stops»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-23 17:02:03 +01:00
693995acb5
rs: add «997. Find the Town Judge»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-22 16:54:24 +01:00
457b0a97ec
ci(cz): add commitizen
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-22 16:52:17 +01:00
ebbb9edfb8
ci: pre-commit autoupdate and add C++ hook
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-21 23:44:34 +01:00
94c49118db
ci(rs): add pre-commit hook for ‹rustfmt›
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-21 23:28:35 +01:00
56b6eee734
rs: add «201. Bitwise AND of Numbers Range»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-21 14:54:47 +01:00
5d27f631e0
ci: format pre-commit config
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-21 14:54:23 +01:00
46abea6e57
rs: add «268. Missing Number»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-20 21:27:21 +01:00
2f10b3cfbc
rs: add «231. Power of Two»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-19 14:04:14 +01:00
66a146f17f
rs: add «2402. Meeting Rooms III»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-18 19:23:12 +01:00
145bbe66e8
rs: fix «1642. Furthest Building You Can Reach»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-17 23:30:20 +01:00
3521bf1f37
rs: add «1642. Furthest Building You Can Reach»
TLEs, not good enough…

Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-17 11:14:51 +01:00
57de9b067a
rs: add «1481. Least Number of Unique Integers after K Removals»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-16 22:03:10 +01:00
85d4d8d9ab
rs: add «2971. Find Polygon With the Largest Perimeter»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-15 23:19:43 +01:00
088cfb5560
cpp: add «2149. Rearrange Array Elements by Sign»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-14 19:08:21 +01:00
0ed6d6ed64
rs: add «2108. Find First Palindromic String in the Array»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-13 11:10:47 +01:00
6fa8544de7
rs: add «169. Majority Element»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-12 20:38:45 +01:00
530181cf50
cpp: add «1463. Cherry Pickup II»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-11 22:41:02 +01:00
eda4e207a3
swift: add «216. Combination Sum III»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-11 18:27:23 +01:00
4299b5f85a
cpp: add «17. Letter Combinations of a Phone Number»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-11 00:28:37 +01:00
16283b93e8
go: add «647. Palindromic Substrings»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-10 12:30:33 +01:00
54667ca465
cpp: add «368. Largest Divisible Subset»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-10 00:18:45 +01:00
b562aea45e
rs: add «279. Perfect Squares»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-08 10:24:08 +01:00
861a38fb89
rs: add «451. Sort Characters By Frequency»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-08 00:18:50 +01:00
93ef2e6198
cpp: add «49. Group Anagrams»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-06 10:59:37 +01:00
e12d5fafdb
cpp: add «387. First Unique Character in a String»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-05 20:12:50 +01:00
0ad2295875
kt: add «76. Minimum Window Substring»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-04 21:15:56 +01:00
f88f860d0d
rs: add «1043. Partition Array for Maximum Sum»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-03 21:30:50 +01:00
45fb950e25
rs: add «1291. Sequential Digits»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-02 20:12:25 +01:00
feee06dc93
rs: add «2966. Divide Array Into Arrays With Max Difference»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-01 14:48:27 +01:00
058016d144
cpp: add «739. Daily Temperatures»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-31 11:55:10 +01:00
b71f3d7640
cpp: add «150. Evaluate Reverse Polish Notation»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-30 10:31:30 +01:00
3987abfd64
chore(cpp): add direnv with CXXFLAGS
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-30 10:31:10 +01:00
47c6862e92
go: add «232. Implement Queue using Stacks»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-29 12:36:17 +01:00
3f7519022a
cpp: add «1074. Number of Submatrices That Sum to Target»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-28 20:12:44 +01:00
2c3f0e2255
rs: add «629. K Inverse Pairs Array»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-28 00:45:48 +01:00
5a4efd75db
rs: add «576. Out of Boundary Paths»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-26 13:35:04 +01:00
421b783a60
cpp: add «1143. Longest Common Subsequence»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-26 00:47:54 +01:00
da19846d3f
cpp: add “1457. Pseudo-Palindromic Paths in a Binary Tree”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-24 09:27:08 +01:00
848381110f
cpp: add “1239. Maximum Length of a Concatenated String with Unique Characters”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-23 21:43:12 +01:00
0308502e2d
cpp: add “1800. Maximum Ascending Subarray Sum”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-22 23:27:47 +01:00
1266061643
cpp: add “645. Set Mismatch”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-22 11:36:20 +01:00
8d4eb729b4
cpp: add “1207. Unique Number of Occurrences”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-22 11:36:18 +01:00
3d625eaade
cpp: add “933. Number of Recent Calls”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-21 19:54:07 +01:00
1c9fea288f
cpp: add “198. House Robber”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-21 11:42:11 +01:00
0505779f3f
cpp: add “907. Sum of Subarray Minimums”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-20 23:16:24 +01:00
48eae7f00b
chore: run pre-commit
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-19 07:12:37 +01:00
c9f0e952a5
rs: add “931. Minimum Falling Path Sum”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-19 07:11:41 +01:00