Skip to content · ⁨Lompat ke konten⁩

Reverse in place · ⁨Undur di tempat⁩

English

Reverse in place

Reverse a C-string in place — change the characters in the same array rather than building a new string. The classic move: a left index at the start and a right index at the end, swap them, then step both toward the middle until they meet.

Bahasa Indonesia

Balik secara in-place

Balik sebuah string C secara in-place — ubah karakter dalam array yang sama alih-alih membangun string baru. Gerakan klasik: indeks kiri di awal dan indeks kanan di akhir, tukar mereka, lalu langkahkan keduanya menuju tengah hingga bertemu.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP