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

Rotate Left

DEMO-C-32 • Programming in C

Browser-only practice

بيان المشكلة

Write a program that rotates the characters of a string to the left by K positions.

قيود

Max string length: 100

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

Input:

S K

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

Output:

Rotated

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

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

العينة رقم 1
عينة ظاهرة
python 1
ythonp
Rotating python left by 1 positions gives ythonp.
العينة رقم 2
عينة ظاهرة
feature 1
eaturef
Rotating feature left by 1 positions gives eaturef.
العينة رقم 3
عينة ظاهرة
yam 1
amy
Rotating yam left by 1 positions gives amy.
العينة رقم 4
عينة ظاهرة
enum 1
nume
Rotating enum left by 1 positions gives nume.

Web terminal

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

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