Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c486bea

Browse files
reformat (#19)
1 parent b2aa791 commit c486bea

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
[![Build Status](https://travis-ci.org/rust-interview/rust-leetcode-solutions.svg?branch=master)](https://travis-ci.org/rust-interview/rust-leetcode-solutions)
44
[![Coverage Status](https://coveralls.io/repos/github/rust-interview/rust-leetcode-solutions/badge.svg?branch=master)](https://coveralls.io/github/rust-interview/rust-leetcode-solutions)
55

6+
## Acknowledgements
7+
8+
+ https://github.com/kamyu104/LeetCode-Solutions
9+
+ https://github.com/begeekmyfriend/leetcode
10+
11+
612
## [kamyu104's](https://github.com/kamyu104/LeetCode-Solutions)
713
```
814
cd kamyu104
@@ -1160,9 +1166,3 @@ cargo test
11601166
1117| [Building H2O](https://leetcode.com/problems/building-h2o/) | [C++](./C++/building-h2o.cpp) [Python](./Python/building-h2o.py) | _O(n)_ | _O(1)_| Hard |||
11611167
-->
11621168

1163-
1164-
1165-
## Acknowledgements
1166-
1167-
+ https://github.com/kamyu104/LeetCode-Solutions
1168-
+ https://github.com/begeekmyfriend/leetcode

kamyu104/src/maximum_product_of_word_lengths.rs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
// Space: O(n)
33
// Counting Sort + Pruning + Bit Manipulation
44
// https://github.com/kamyu104/LeetCode-Solutions/blob/master/C++/maximum-product-of-word-lengths.cpp#L1-L40
5-
pub struct Solution1 {}
6-
impl Solution1 {
7-
pub fn max_product(words: Vec<String>) -> i32 {
8-
0
9-
}
10-
}
5+
// pub struct Solution1 {}
6+
// impl Solution1 {
7+
// pub fn max_product(words: Vec<String>) -> i32 {
8+
// 0
9+
// }
10+
// }
1111

1212
// Time: O(nlogn) ~ O(n^2)
1313
// Space: O(n)
@@ -45,23 +45,23 @@ impl Solution2 {
4545
// # Time: O(n) ~ O(n^2)
4646
// # Space: O(n)
4747
// https://github.com/kamyu104/LeetCode-Solutions/blob/master/Python/maximum-product-of-word-lengths.py#L1-L36
48-
pub struct Solution3 {}
49-
impl Solution3 {
50-
pub fn max_product(words: Vec<String>) -> i32 {
51-
0
52-
}
53-
}
48+
// pub struct Solution3 {}
49+
// impl Solution3 {
50+
// pub fn max_product(words: Vec<String>) -> i32 {
51+
// 0
52+
// }
53+
// }
5454

5555
// # Time: O(nlogn) ~ O(n^2)
5656
// # Space: O(n)
5757
// # Sorting + Pruning + Bit Manipulation
5858
// https://github.com/kamyu104/LeetCode-Solutions/blob/master/Python/maximum-product-of-word-lengths.py#L38-L62
59-
pub struct Solution4 {}
60-
impl Solution4 {
61-
pub fn max_product(words: Vec<String>) -> i32 {
62-
0
63-
}
64-
}
59+
// pub struct Solution4 {}
60+
// impl Solution4 {
61+
// pub fn max_product(words: Vec<String>) -> i32 {
62+
// 0
63+
// }
64+
// }
6565

6666
#[cfg(test)]
6767
mod tests {

0 commit comments

Comments
 (0)