السابق
0 / 5
الوحدة النمطية DEMO-32-107DEMO-C-32

Union of Arrays

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Write a function findUnion that prints the union of two arrays.

قيود

n <= 50

تنسيق الإدخال

n, arr1, m, arr2

تنسيق الإخراج

Union values

حالات اختبار نموذجية

Submit runs every public testcase in this browser. Results and code never leave this device.

العينة رقم 1
عينة ظاهرة
3
1 2 3
3
2 3 4
1 2 3 4
العينة رقم 2
عينة ظاهرة
3
1 2 1
2
1 2
1 2

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
إعدادات المحرر