Added test2 to p22, TODO: implement p22

This commit is contained in:
Egor 2024-05-03 02:22:22 +03:00
parent 62e8eaf52f
commit 5c73aefbc4

View file

@ -1,5 +1,6 @@
pub struct Solution;
impl Solution {
// TODO: implement
pub fn generate_parenthesis(n: i32) -> Vec<String> {
return vec![];
@ -12,3 +13,8 @@ fn test1() {
actual.sort();
assert_eq!(actual, vec!["((()))","(()())","(())()","()(())","()()()"]);
}
#[test]
fn test2() {
assert_eq!(Solution::generate_parenthesis(1), vec!["()"]);
}