السابق التالي
0 / 23
الوحدة النمطية DEMO-32-108DEMO-C-32

Remove Duplicates

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Write a program that removes duplicate characters from a string, preserving the order of the first occurrence of each character.

قيود

Max string length: 100

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

Input:

String S

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

Output:

Unique

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

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

العينة رقم 1
عينة ظاهرة
Component?2
Compnet?2
Removing duplicates from Component?2 gives Compnet?2.
العينة رقم 2
عينة ظاهرة
Story.2
Story.2
Removing duplicates from Story.2 gives Story.2.
العينة رقم 3
عينة ظاهرة
Scrum!9
Scrum!9
Removing duplicates from Scrum!9 gives Scrum!9.
العينة رقم 4
عينة ظاهرة
Apple#3
Aple#3
Removing duplicates from Apple#3 gives Aple#3.

Web terminal

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

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