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

55 commits

Author SHA1 Message Date
1eab058c56
style(cpp): reformat
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-05-17 18:23:03 +02:00
4e873f87b0
cpp: add «1915. Number of Wonderful Substrings»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-05-01 00:53:46 +02:00
241e5f9aad
cpp: add «834. Sum of Distances in Tree»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-04-28 23:48:46 +02:00
14f67a9637
cpp: add «310. Minimum Height Trees»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-04-23 23:12:29 +02:00
9fe5babb33
cpp: add «752. Open the Lock»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-04-22 23:57:10 +02:00
f3631deaca
cpp: add «1971. Find if Path Exists in Graph»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-04-21 21:55:04 +02:00
e9a5706e93
cpp: add «42. Trapping Rain Water»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-04-13 00:36:43 +02:00
4a2d886d3f
cpp: add «402. Remove K Digits»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-04-11 23:16:03 +02:00
9101ade10b
cpp: add «950. Reveal Cards In Increasing Order»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-04-10 13:53:19 +02:00
aa6d36233b
cpp: add «1249. Minimum Remove to Make Valid Parentheses»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-04-07 00:15:55 +02:00
34f92878c2
cpp: add «2958. Length of Longest Subarray With at Most K Frequency»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-03-29 00:11:12 +01:00
10e24a7593
cpp: add «713. Subarray Product Less Than K»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-03-27 22:10:03 +01:00
84ba9d343b
cpp: add «1669. Merge In Between Linked Lists»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-03-21 00:05:41 +01:00
c228a24b1a
cpp: add «525. Contiguous Array»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-03-17 23:39:17 +01:00
37d6c3400c
cpp: add «1171. Remove Zero Sum Consecutive Nodes from Linked List»
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-03-12 23:49:58 +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
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
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
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
530181cf50
cpp: add «1463. Cherry Pickup II»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-11 22:41:02 +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
54667ca465
cpp: add «368. Largest Divisible Subset»
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-02-10 00:18:45 +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
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
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
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
744059e7b1
cpp: add “1026. Maximum Difference Between Node and Ancestor”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-11 15:19:44 +01:00
5f9d8d328b
cpp: add “2385. Amount of Time for Binary Tree to Be Infected”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-10 22:28:23 +01:00
30202920b0
cpp: add “938. Range Sum of BST”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-08 11:50:46 +01:00
b20b6b2d9a
cpp: add “1235. Maximum Profit in Job Scheduling”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-06 16:49:42 +01:00
4340c17b03
cpp: add “300. Longest Increasing Subsequence”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-05 23:42:43 +01:00
489d931f11
cpp: add “2870. Minimum Number of Operations to Make Array Empty”
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-01-04 17:52:29 +01:00
b229608723
cpp(chore): add clang-format style and format
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-03 12:06:54 +01:00
2daade49c0
cpp: add “2125. Number of Laser Beams in a Bank”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-03 12:05:21 +01:00
f8f23de17e
cpp: add “2610. Convert an Array Into a 2D Array With Conditions”
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-01-02 18:47:37 +01:00