leetcode/concatenation-of-array/src/main.rs

14 lines
243 B
Rust
Raw Normal View History

2024-06-27 11:30:16 +02:00
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
}
}