rustgym 0.2.0

rustgym solutions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct Solution;

impl Solution {
    fn find_lu_slength(a: String, b: String) -> i32 {
        if a == b {
            -1
        } else {
            a.len().max(b.len()) as i32
        }
    }
}

#[test]
fn test() {
    let a = "aba".to_string();
    let b = "cdc".to_string();
    assert_eq!(Solution::find_lu_slength(a, b), 3);
}