algorithmz 1.2.9

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::is_sorted;

#[test]
fn test_is_sorted() {
    let result = is_sorted(vec![5,6,7]);
    assert_eq!(result, true);
}

#[test]
fn test_is_sorted_false() {
    let result = is_sorted(vec![6,5,7]);
    assert_eq!(result, false);
}