Jobs
Interviews

Solve Case-Insensitive Stable Sort using Go Lang Language

Solve Case-Insensitive Stable Sort using Go Lang to enhance your skills with go lang 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

Real-World Challenges Work on problems that simulate Go's typical use cases in production.

Comprehensive Explanations Gain insights into Go's design and best practices through detailed tutorials.

Industry-Ready Skills Prepare for backend development and cloud-based projects with practical exercises.

Choose from the following categories