C Coding Practice

Solve Case-Insensitive Stable Sort using C Language

Solve Case-Insensitive Stable Sort using C to enhance your skills with c coding practice , master coding concepts, and prepare for interviews with practical exercises and detailed solutions.

Case-Insensitive Stable Sort

Difficulty : Easy

Categories :

  • Sorting algorithms

Given an array of strings containing names, sort them in a case-insensitive manner. If two strings are equal when compared case-insensitively, maintain their original order (stable sort).

Constraints:

  • 1 ≤ array.length ≤ 100
  • 1 ≤ name.length ≤ 20
  • Names contain only English letters
  • Must perform stable sorting

Examples:

Input: ["Tom", "alice", "Bob", "aLice"]
Output: ["alice", "aLice", "Bob", "Tom"]
Explanation: Sorted case-insensitively, maintaining original order of "alice" and "aLice"
Input: ["Zebra", "zebra", "cat"]
Output: ["cat", "Zebra", "zebra"]
Explanation: "cat" comes before both "Zebra" and "zebra"

Problem Solving

Input

What You'll Find Here

Practical Challenges Solve coding problems that strengthen your understanding of C.

Step-by-Step Tutorials Learn how to write efficient and optimized code.

Career-Focused Skills Prepare for technical interviews with targeted exercises.

Choose from the following categories