MCPcopy Create free account
hub / github.com/douchuan/algorithm / inorder_test_data

Function inorder_test_data

tests/test_tree_traverse.rs:205–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203}
204
205fn inorder_test_data() -> Vec<(Vec<&'static str>, Vec<usize>)> {
206 vec![
207 (vec!["1", "#", "2", "3"], vec![1, 3, 2]),
208 (
209 vec!["1", "2", "#", "3", "#", "#", "#", "4"],
210 vec![4, 3, 2, 1],
211 ),
212 (
213 vec!["1", "2", "#", "3", "#", "#", "#", "#", "4"],
214 vec![3, 4, 2, 1],
215 ),
216 (
217 vec!["1", "2", "#", "3", "4", "#", "#", "5"],
218 vec![5, 3, 2, 4, 1],
219 ),
220 ]
221}

Callers 2

inorder_iterFunction · 0.85
inorder_recursiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected