-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
170 lines (116 loc) · 6.03 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
pub struct Solution {}
pub mod util;
pub mod leetcode {
#[path = "0001-two-sum/twoSum.rs"]
pub mod two_sum;
#[path = "0521-longest-uncommon-subsequence-i/findLUSlength.rs"]
pub mod find_lu_slength;
#[path = "0682-baseball-game/calPoints.rs"]
pub mod cal_points;
#[path = "0881-boats-to-save-people/numRescueBoats.rs"]
pub mod num_rescue_boats;
#[path = "1052-grumpy-bookstore-owner/maxSatisfied.rs"]
pub mod max_satisfied;
#[path = "1673-find-the-most-competitive-subsequence/mostCompetitive.rs"]
pub mod most_competitive;
#[path = "1953-maximum-number-of-weeks-for-which-you-can-work/numberOfWeeks.rs"]
pub mod number_of_weeks;
#[path = "2097-watering-plants/wateringPlants.rs"]
pub mod watering_plants;
#[path = "2028-find-missing-observations/missingRolls.rs"]
mod missing_rolls;
#[path = "2105-watering-plants-ii/minimumRefill.rs"]
pub mod minimum_refill;
#[path = "2225-find-players-with-zero-or-one-losses/findWinners.rs"]
pub mod find_winners;
#[path = "2244-minimum-rounds-to-complete-all-tasks/minimumRounds.rs"]
pub mod minimum_rounds;
#[path = "2288-apply-discount-to-prices/discountPrices.rs"]
mod discount_prices;
#[path = "2391-minimum-amount-of-time-to-collect-garbage/garbageCollection.rs"]
pub mod garbage_collection;
#[path = "2748-number-of-beautiful-pairs/countBeautifulPairs.rs"]
pub mod the_count_beautiful_pairs;
#[path = "2769-find-the-maximum-achievable-number/theMaximumAchievableX.rs"]
pub mod the_maximum_achievable_x;
#[path = "2798-number-of-employees-who-met-the-target/numberOfEmployeesWhoMetTarget.rs"]
pub mod number_of_employees_who_met_target;
#[path = "2806-account-balance-after-rounded-purchase/accountBalanceAfterPurchase.rs"]
mod account_balance_after_purchase;
#[path = "2938-separate-black-and-white-balls/minimumSteps.rs"]
mod minimum_steps;
#[path = "2951-find-the-peaks/findPeaks.rs"]
pub mod find_peaks;
#[path = "2956-find-common-elements-between-two-arrays/findIntersectionValues.rs"]
pub mod find_intersection_values;
#[path = "2960-count-tested-devices-after-test-operations/countTestedDevices.rs"]
pub mod count_tested_devices;
#[path = "2981-find-longest-special-substring-that-occurs-thrice-i/maximumLength.rs"]
pub mod maximum_length;
#[path = "3038-maximum-number-of-operations-with-the-same-score-i/maxOperations.rs"]
pub mod max_operations;
#[path = "3111-minimum-rectangles-to-cover-points/minRectanglesToCoverPoints.rs"]
pub mod min_rectangles_to_cover_points;
#[path = "3131-find-the-integer-added-to-array-i/addedInteger.rs"]
pub mod added_integer;
#[path = "3142-check-if-grid-satisfies-conditions/satisfiesConditions.rs"]
pub mod satisfies_conditions;
#[cfg(test)]
#[path = ""]
mod rust {
#[path = "0001-two-sum/twoSum_test.rs"]
mod test_tow_sum;
#[path = "0521-longest-uncommon-subsequence-i/findLUSlength_test.rs"]
pub mod test_find_lu_slength;
#[path = "0682-baseball-game/calPoints_test.rs"]
pub mod test_cal_points;
#[path = "0881-boats-to-save-people/numRescueBoats_test.rs"]
pub mod test_num_rescue_boats;
#[path = "1052-grumpy-bookstore-owner/maxSatisfied_test.rs"]
mod test_max_satisfied;
#[path = "1673-find-the-most-competitive-subsequence/mostCompetitive_test.rs"]
pub mod test_most_competitive;
#[path = "1953-maximum-number-of-weeks-for-which-you-can-work/numberOfWeeks_test.rs"]
pub mod test_number_of_weeks;
#[path = "2028-find-missing-observations/missingRolls_test.rs"]
mod test_missing_rolls;
#[path = "2097-watering-plants/wateringPlants_test.rs"]
mod test_watering_plants;
#[path = "2105-watering-plants-ii/minimumRefill_test.rs"]
mod test_minimum_refill;
#[path = "2225-find-players-with-zero-or-one-losses/findWinners_test.rs"]
pub mod test_find_winners;
#[path = "2244-minimum-rounds-to-complete-all-tasks/minimumRounds_test.rs"]
mod test_minimum_rounds;
#[path = "2288-apply-discount-to-prices/discountPrices_test.rs"]
mod test_discount_prices;
#[path = "2391-minimum-amount-of-time-to-collect-garbage/garbageCollection_test.rs"]
mod test_garbage_collection;
#[path = "2748-number-of-beautiful-pairs/countBeautifulPairs_test.rs"]
pub mod the_count_beautiful_pairs;
#[path = "2769-find-the-maximum-achievable-number/theMaximumAchievableX_test.rs"]
pub mod test_the_maximum_achievable_x;
#[path = "2798-number-of-employees-who-met-the-target/numberOfEmployeesWhoMetTarget_test.rs"]
mod test_number_of_employees_who_met_the_target;
#[path = "2806-account-balance-after-rounded-purchase/accountBalanceAfterPurchase_test.rs"]
mod test_account_balance_after_purchase;
#[path = "2938-separate-black-and-white-balls/minimumSteps_test.rs"]
mod test_minimum_steps;
#[path = "2951-find-the-peaks/findPeaks_test.rs"]
pub mod test_find_peaks;
#[path = "2956-find-common-elements-between-two-arrays/findIntersectionValues_test.rs"]
pub mod test_find_intersection_values;
#[path = "2960-count-tested-devices-after-test-operations/countTestedDevices_test.rs"]
mod test_count_tested_devices;
#[path = "2981-find-longest-special-substring-that-occurs-thrice-i/maximumLength_test.rs"]
pub mod test_maximum_length;
#[path = "3038-maximum-number-of-operations-with-the-same-score-i/maxOperations_test.rs"]
pub mod test_max_operations;
#[path = "3111-minimum-rectangles-to-cover-points/minRectanglesToCoverPoints_test.rs"]
pub mod test_min_rectangles_to_cover_points;
#[path = "3131-find-the-integer-added-to-array-i/addedInteger_test.rs"]
pub mod test_added_integer;
#[path = "3142-check-if-grid-satisfies-conditions/satisfiesConditions_test.rs"]
pub mod test_satisfies_conditions;
}
}