algorithmz 0.9.6

This is the corresponding implemenation of the python module of the same name.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use algorithmz::map::longest_palindromic_subsequence;

#[test]
fn test_longest_palindromic_subsequence_non_zero() {
    let result = longest_palindromic_subsequence("babad");
    assert_eq!(result, 3);
}

#[test]
fn test_longest_palindromic_subsequence_zero() {
    let result = longest_palindromic_subsequence("abcdefg");
    assert_eq!(result, 1);
}