Delete Alternate Characters in a String | Basic Coding Problem Explained

Опубликовано: 05 Август 2026
на канале: Doyen Coder
41
0

🚀 Problem Solved: Delete Alternate Characters from a String
💡 Difficulty: Basic | ✅ Accuracy: 68.99% | 💻 Submissions: 38K+

In this quick coding tutorial, we'll learn how to delete characters at odd indices from a given string. Perfect for beginners preparing for interviews or brushing up on string manipulation basics!

🔍 Problem Statement:
Given a string s, remove all characters that appear at odd indices (i.e., index 1, 3, 5, ...). Return the modified string.

📘 Examples:
Input: s = "Geeks"
Output: "Ges"

Input: s = "GeeksforGeeks"
Output: "GesoGes"
✅ Topics Covered:

String manipulation

Index-based filtering

💬 Don’t forget to like, comment, and subscribe for more coding problems and tutorials!

#coding #interviewquestions #stringproblem #python #datastructures #programming