1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub struct Solution;
// Definition for singly-linked list.
#[derive(PartialEq, Eq, Debug)]
pub struct ListNode {
    pub val: i32,
    pub next: Option<Box<ListNode>>,
}

impl ListNode {
    #[inline]
    fn new(val: i32) -> Self {
        ListNode { next: None, val }
    }
}

pub mod add_two_numbers;
pub mod longest_substring_without_repeating_characters;
pub mod median_of_two_sorted_arrays;
pub mod two_sum;