leetcode/concatenation-of-array/src/main.rs
2024-06-27 11:30:16 +02:00

14 lines
243 B
Rust

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
}
}