algorithmz 0.9.4

This is the corresponding implemenation of the python module of the same name.
Documentation
1
2
3
4
5
6
7
8
use algorithmz::array::n_sum;

#[test]
fn test_n_sum() {
    let result = n_sum(3, vec![-1, 0, 1, 2, -1, -4], 0);
    assert_eq!(result,vec![vec![-1, -1, 2], vec![-1, 0, 1]]);
}