algorithmz 1.3.0

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::stack::valid_parenthesis;

#[test]
fn test_valid_parenthesis() {
    let result = valid_parenthesis("[]{}()");
    assert_eq!(result, true);
}

#[test]
fn test_valid_parenthesis_false() {
    let result = valid_parenthesis("{[(");
    assert_eq!(result, false);
}