🎓 HackerRank Practice: Student Marks Manager using C# Lists
Working with Lists is one of the most common exercises in coding challenges. Lists in C# are dynamic collections that allow adding, removing, and inserting elements easily. Let’s solve a simple HackerRank-style problem step by step. 📌 Problem Statement: Student Marks Manager You are given student marks. Perform operations using a List<int> . Input 5 10 20 30 40 50 3 Add 60 Remove 20 Insert 25 2 Output 10 25 30 40 50 60 Explanation Start: [10, 20, 30, 40, 50] Add 60 → [10, 20, 30, 40, 50, 60] Remove 20 → [10, 30, 40, 50, 60] Insert 25 at index 2 → [10, 25, 30, 40, 50, 60] ✅ This tests: Index-based access Add / Remove operations Insert at a given index 🛠️ Solution in C# using System; using System.Collections.Generic; public class Program { public static void Main() { // Input: number of students int n = int.Parse(Console.ReadLine()); // Input: student marks string[] input = Console.ReadLin...