Crates.io | dsa_sport |
lib.rs | dsa_sport |
version | 0.1.1-a |
source | src |
created_at | 2021-01-14 14:00:07.253609 |
updated_at | 2021-03-16 04:24:59.065911 |
description | crate of revision material for undergrads |
homepage | |
repository | https://gitlab.com/kkroy22/dsa_sport/ |
max_upload_size | |
id | 341920 |
size | 42,991 |
this crate is not intended to be used as a library for any of the application. this crate only serves some basic concept related to data structure.
use dsa_sport::datastruct::list_struct::LinkedList;
let mut list = LinkedList::new();
list.add_node(1);
list.add_node(2);
list.add_node(3);
assert_eq!(format!("{:?}",list), format!("1 -> 2 -> 3 -> x"));
assert_eq!(list.len(), 3);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.