summaryrefslogtreecommitdiff
path: root/concatenation-of-array/src/main.rs
blob: f08a58dff2a906b82dace760a1cc786ced408b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
fn main() {
    println!("Hello, world!");
}

struct Solution;

impl Solution {
    pub fn get_concatenation(nums: Vec<i32>) -> Vec<i32> {
        let mut result = nums.clone();
        result.append(&mut nums.clone());
        result
    }
}