feat: add initial implementation of Cargo.toml, Cargo.lock, and lib.rs with get_concatenation function

This commit is contained in:
SquidSpirit 2025-08-18 18:45:57 +08:00
parent 21fffd8882
commit 610d05ddb2
3 changed files with 20 additions and 0 deletions

7
1929_concatenation_of_array/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "concatenation_of_array"
version = "0.1.0"

View File

@ -0,0 +1,6 @@
[package]
name = "concatenation_of_array"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@ -0,0 +1,7 @@
pub struct Solution;
impl Solution {
pub fn get_concatenation(nums: Vec<i32>) -> Vec<i32> {
vec![nums.clone(), nums].concat()
}
}