Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a program to reverse a hardcoded linked list using C#’s LinkedList<T> class.

Medium

Problem Statement

Create a program to reverse a hardcoded linked list using C#’s LinkedList class.

Sample Input

Linked List: [1, 2, 3, 4, 5]

Sample Output

Reversed List: 5, 4, 3, 2, 1

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
using System; using System.Collections.Generic; class ReverseLinkedList { static void Main() { // Reverse the linked list } }
Log in or sign up to run or submit your code.Log inSign up
Input
Linked List: [1, 2, 3, 4, 5]
Expected Output
Reversed List: 5, 4, 3, 2, 1