Concatenation of vectors P24301


Statement
 

pdf   zip   main.cc   main.java   main.py

thehtml

Write a function that returns the concatenation of v1 and v2. That is, you must return a vector with the elements of v1 followed by the elements of v2.

C++
vector<int> concatenation(const vector<int>& v1, const vector<int>& v2);
Java
public static int[] concatenation(int[] v1, int[] v2);
Python
concatenation(v1, v2); # returns list
MyPy
concatenation(v1: list[int], v2: list[int]) -> list[int]
Information
Author
Salvador Roura
Language
English
Translator
Carlos Molina
Original language
Catalan
Other languages
Catalan
Official solutions
C++ Java Python
User solutions
C++ Java Python