1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/// Returns whether someone can attend a meeting based on a list of lists.
///
/// Takes a list of list reference and returns a `bool` or an error string.
///
/// # Examples
///
/// Basic usage:
/// ```
/// let result = algorithmz::sorting::meeting_rooms_sort(&vec![[7,10],[4,2]]).unwrap();
/// assert_eq!(result,true);
/// ```
///
/// Match example:
/// ```
/// use algorithmz::sorting::meeting_rooms_sort;
/// let my_list = vec![[7,10],[4,2]];
/// match meeting_rooms_sort(&my_list) {
/// Ok(n) => println!("The result was: {:?}",n),
/// Err(e) => eprintln!("The error was: {}",e),
/// }
/// ```