Commit graph

352 commits

Author SHA1 Message Date
c6dfb95ec0
ci(java): add pre-commit hook for formatting
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-03-02 20:59:59 +01:00
668057d19c
rs: add «977. Squares of a Sorted Array»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-03-02 12:57:58 +01:00
8d4fc53789
rs: add «2864. Maximum Odd Binary Number»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-03-01 19:01:09 +01:00
981c119d36
cpp: add «1609. Even Odd Tree»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-29 23:28:54 +01:00
510ad47987
ci(cz): separate the input of number and problem name
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-29 23:28:16 +01:00
482a94aa73
cpp: add «513. Find Bottom Left Tree Value»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-28 13:53:35 +01:00
aabf7eda27
go: add «543. Diameter of Binary Tree»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-27 12:20:08 +01:00
778bcb1a2f
ci: adjust the commitizen config
* Reorder the languages based on the likelihood
* Add ‹style› to the possible options

Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-26 21:35:17 +01:00
e843e692eb
go: add «100. Same Tree»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-26 17:01:47 +01:00
ffef9f6188
go: add ‹package› to satisfy ‹gofmt›
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-26 16:38:21 +01:00
18017bce64
ci(go): bump the pre-commit and add ‹gofmt›
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-26 16:37:43 +01:00
c446face87
cpp: add «2709. Greatest Common Divisor Traversal»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-25 23:29:38 +01:00
5a9d218bcb
cpp: solve «2092. Find All People With Secret»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-24 23:46:13 +01:00
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