Skip to content

Commit a3a80fb

Browse files
committed
feat: add specs for min window
1 parent 7b19537 commit a3a80fb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/hard/minimum_window_substring.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#![allow(dead_code)]
2+
pub fn min_window(s: String, t: String) -> String {
3+
"".to_string()
4+
}
5+
6+
#[cfg(test)]
7+
mod tests {
8+
use super::*;
9+
10+
#[test]
11+
fn test_min_window() {
12+
let s = "ADOBECODEBANC".to_string();
13+
let t = "ABC".to_string();
14+
assert_eq!(min_window(s, t), "BANC".to_string());
15+
}
16+
}

0 commit comments

Comments
 (0)