C# — 100 Coding Exercises

Level up your C# skills with 100 bite-sized, in-browser coding problems. Learn by doing—no setup needed.

  • 0.0 (0 Reviews)
  • 0 Students
  • 206 Lessons
  • Elegant Code – Krystyna Ślusarczyk

Course Overview

Welcome to “C# — 100 Coding Exercises”—the most practical way to level up your C# skills, one problem at a time.


Learning to code isn’t just about watching videos—it’s about rolling up your sleeves and solving real problems. This course gives you 100 bite-sized, in-browser coding challenges, covering everything from the basics to advanced C# features. No setup or extra tools required—just open your browser and start coding.


Why practice with real coding exercises?

  • Mastering C# means practice, not just theory. These exercises are designed to help you really think in C#—so you’ll build the habits and confidence you need for any coding task.

  • Whether you’re preparing for job interviews, looking to sharpen your skills for your current job, or just love the satisfaction of solving problems, this course will get you there.

  • Each exercise is focused and practical, teaching core C# concepts, real-world problem-solving, and the kind of thinking that employers value.


What will you gain?

  • The ability to tackle a huge variety of real-world coding problems—loops, collections, LINQ, pattern matching, error handling, algorithms, and more.

  • Experience with modern C#—from tuple returns and nullable types, to reflection, operator overloading, custom attributes, and generic math.

  • The “muscle memory” to write code that’s clean, robust, and ready for interviews or professional work.

  • Step-by-step solutions for every exercise—you’ll get both a written explanation and a solution video (unlike many other exercise courses), so you can choose how you learn best.

  • For many problems, you’ll see more than one way to solve the task—helping you understand C# from multiple angles.


What makes this course different?

  • Hands-on learning—Solve every challenge directly in your browser. No downloads or installations needed.

  • Real variety—From simple tasks like string manipulation and list filtering to advanced problems involving generics, events, LINQ, and more. There’s something here for every level.

  • Immediate feedback—Submit your solution and see the results instantly, so you learn fast and keep improving.

  • Solution videos for every exercise—See the video walkthrough whenever you need them, or just check the written solution if you prefer.

  • Interview readiness—Practicing with real coding challenges is the best way to prepare for C# interviews and coding assessments.


Your path to C# mastery

  • I’m a .NET Technical Lead with 10+ years of industry experience, and I’ve built these exercises to help you build real, job-ready C# skills.

  • Whether you’re new to C#, coming back after a break, or just want to sharpen your edge, I’ll help you level up—one exercise at a time.


Additional perks:

  • Lifetime access and free updates—get all new exercises and improvements.

  • This course is covered by Udemy’s 30-day Refund Policy, so you can try it out risk-free.


Enroll now and start solving your way to C# mastery!

See more

FAQ

FAQ area empty

Course curriculum

3 chương 206 bài học 4 giờ 46 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 100 C# Coding Exercises
  • Check if a collection contains any negative numbers (⭐)
  • Solution: Check if a collection contains any negative numbers Học thử 1:50
  • Split a full name into first and last names (⭐)
  • Solution: Split a full name into first and last names Học thử 1:24
  • Count character frequencies in a string (⭐⭐)
  • Solution: Count character frequencies in a string Học thử 2:22
  • Filter and select qualified players from a game leaderboard (⭐⭐)
  • Solution: Filter and select qualified players from a game leaderboard 3:25
  • Calculate total break time from multiple time ranges (⭐)
  • Solution: Calculate total break time from multiple time ranges 1:51
  • Track the highest score for a player (⭐)
  • Solution: Track the highest score for a player 1:58
  • Calculate shipping cost based on order total and customer status (⭐)
  • Solution: Calculate shipping cost based on order total and customer status 1:57
  • Try parsing a date and extracting its components (⭐)
  • Solution: Try parsing a date and extracting its components 2:31
  • Check if a string is a palindrome (⭐)
  • Solution: Check if a string is a palindrome 2:48
  • Implement a weekly schedule with multiple custom indexers (⭐⭐)
  • Solution: Implement a weekly schedule with multiple custom indexers 4:43
  • Read file content safely (⭐)
  • Solution: Read file content safely 2:05
  • Sum a range of values from a variable-length input (⭐)
  • Solution: Sum a range of values from a variable-length input 2:19
  • Separate strings and integers from a mixed object list (⭐)
  • Solution: Separate strings and integers from a mixed object list 3:08
  • Sum integers with strict overflow checking (⭐)
  • Solution: Sum integers with strict overflow checking 2:58
  • Safely sum integers into a long (⭐)
  • Solution: Safely sum integers into a long 2:29
  • Format text with custom styles (⭐)
  • Solution: Format text with custom styles 1:51
  • Read a string until the end marker (⭐)
  • Solution: Read a string until the end marker 1:57
  • Extend DayOfWeek to detect weekends (⭐)
  • Solution: Extend DayOfWeek to detect weekends 1:28
  • Count halvings until value drops below 1 (⭐)
  • Solution: Count halvings until value drops below 1 2:08
  • Send notifications via multiple channels (⭐⭐)
  • Solution: Send notifications via multiple channels 2:57
  • Generate random discount codes (⭐⭐)
  • Solution: Generate random discount codes 2:29
  • Validate user registration data (⭐⭐)
  • Solution: Validate user registration data 4:46
  • Check if parentheses are balanced (⭐⭐⭐)
  • Solution: Check if parentheses are balanced 3:07
  • Add matrices with operator overloading (⭐⭐)
  • Solution: Add matrices with operator overloading 2:55
  • Track class usage statistics (⭐)
  • Solution: Track class usage statistics 1:36
  • Time duration adapter (⭐⭐)
  • Solution: Time duration adapter 3:33
  • Count unique elements in a list (⭐)
  • Solution: Count unique elements in a list 1:55
  • Generic pair type (⭐⭐)
  • Solution: Generic pair type 2:33
  • Unique task identifier with string formatting (⭐⭐)
  • Solution: Unique task identifier with string formatting 3:18
  • Calculate factorial with recursion (⭐⭐)
  • Solution: Calculate factorial with recursion 2:31
  • Check the result of the tic-tac-toe game (⭐⭐)
  • Solution: Check the result of the tic-tac-toe game 5:57
  • Event ticket composed ID (⭐)
  • Solution: Event ticket composed ID 2:54
  • Produce Fibonacci sequence (⭐⭐⭐)
  • Solution: Produce Fibonacci sequence 3:51
  • Calculate discounted price (⭐⭐)
  • Solution: Calculate discounted price 3:45
  • Reverse a string without built-in methods (⭐)
  • Solution: Reverse a string without built-in methods 2:20
  • Custom book sorting with IComparer (⭐⭐)
  • Solution: Custom book sorting with IComparer 2:58
  • Sort houses by floor area with IComparable (⭐)
  • Solution: Sort houses by floor area with IComparable 2:03
  • Recent messages by timestamp (⭐)
  • Solution: Recent messages by timestamp 1:58
  • Define a value-based House data structure (⭐)
  • Solution: Define a value-based House data structure 1:17
  • Handle web request errors with exception filtering (⭐⭐)
  • Solution: Handle web request errors with exception filtering 3:15
  • Get top N recent messages by timestamp (⭐)
  • Solution: Get top N recent messages by timestamp 1:30
  • Define a temperature converter with expression-bodied members (⭐)
  • Define a temperature converter with expression-bodied members 2:01
  • Calculate land value with double and decimal (⭐⭐)
  • Solution: Calculate land value with double and decimal 2:56
  • Implement a binary search algorithm for numbers (⭐⭐⭐)
  • Solution: Implement a binary search algorithm for numbers 4:17
  • Implement shape calculations with abstract classes (⭐)
  • Solution: Implement shape calculations with abstract classes 2:03
  • Find the cheapest product by category (⭐)
  • Solution: Find the cheapest product by category 1:44
  • Implement a copy constructor for a book (⭐)
  • Solution: Implement a copy constructor for a book 1:26
  • Process messages with IDisposable logger (⭐⭐)
  • Solution: Process messages with IDisposable logger 3:00
  • Implement a sorting algorithm (⭐⭐)
  • Solution: Implement a sorting algorithm 4:55
  • Flatten a nested list of numbers (⭐)
  • Solution: Flatten a nested list of numbers 2:38
  • Chain constructors in a family of classes (⭐)
  • Solution: Chain constructors in a family of classes 2:35
  • Describe a class without hardcoding names (⭐)
  • Solution: Describe a class without hardcoding names 2:46
  • Merge two sequences with fallback defaults (⭐⭐)
  • Solution: Merge two sequences with fallback defaults 3:43
  • Generate property report with reflection (⭐⭐)
  • Solution: Generate property report with reflection 2:07
  • Transform numbers with a delegate (⭐⭐)
  • Solution: Transform numbers with a delegate 3:14
  • Define a custom attribute (⭐⭐)
  • Solution: Define a custom attribute 2:39
  • Process tasks one by one using a queue (⭐)
  • Solution: Process tasks one by one using a queue 2:07
  • Limit list capacity with an indexer (⭐)
  • Solution: Limit list capacity with an indexer 1:58
  • Reverse a generic array (⭐⭐)
  • Solution: Reverse a generic array 2:15
  • Check if a type implements a specific interface (⭐⭐)
  • Solution: Check if a type implements a specific interface 1:43
  • Raise an event when threshold is exceeded (⭐⭐⭐)
  • Solution: Raise an event when threshold is exceeded 4:28
  • Serialize and deserialize an object using System.Text.Json (⭐)
  • Solution: Serialize and deserialize an object using System.Text.Json 2:14
  • Yield unique words until encountering a duplicate (⭐⭐)
  • Solution: Yield unique words until encountering a duplicate 1:49
  • Measure method execution time with Stopwatch (⭐)
  • Solution: Measure method execution time with Stopwatch 1:34
  • Extract a slice of characters using Span (⭐⭐)
  • Solution: Extract a slice of characters using Span 2:58
  • Return results as ValueTuple instead of anonymous objects (⭐⭐)
  • Solution: Return results as ValueTuple instead of anonymous objects 2:45
  • Work with custom attributes and reflection to find marked methods (⭐⭐⭐)
  • Solution: Work with custom attributes and reflection to find marked methods 3:48
  • Merge two user collections with unique emails (⭐)
  • Solution: Merge two user collections with unique emails 1:37
  • Extract values in brackets using StringBuilder (⭐⭐)
  • Solution: Extract values in brackets using StringBuilder 3:02
  • Deprecate a base logging method using method hiding (⭐⭐)
  • Solution: Deprecate a base logging method using method hiding 2:20
  • Calculate the average using INumber<T> constraint (⭐⭐)
  • Solution: Calculate the average using INumber<T> constraint 4:08
  • Create a simple dictionary of words using SortedList (⭐⭐)
  • Solution: Create a simple dictionary of words using SortedList 4:06
  • Analyze a file path from segments (⭐)
  • Solution: Analyze a file path from segments 4:16
  • Aggregate sales data by category (⭐⭐)
  • Solution: Aggregate sales data by category 2:49
  • Filter out null strings from a list using nullable reference types (⭐⭐)
  • Solution: Filter out null strings from a list using nullable reference types 3:24
  • Paginate a list of items (⭐)
  • Solution: Paginate a list of items 2:27
  • Implement deferred object creation using Lazy<T> (⭐⭐)
  • Solution: Implement deferred object creation using Lazy<T> 3:59
  • Format a column-aligned table using string interpolation (⭐⭐)
  • Solution: Format a column-aligned table using string interpolation 3:33
  • Get basic system information (⭐⭐)
  • Solution: Get basic system information 2:03
  • Divide integers into equal-sized chunks (⭐)
  • Solution: Divide integers into equal-sized chunks 1:42
  • Find the intersection of two collections (⭐⭐)
  • Solution: Find the intersection of two collections 3:07
  • Implement a custom IEqualityComparer for product equality (⭐⭐)
  • Solution: Implement a custom IEqualityComparer for product equality 3:00
  • Square a list of numbers in parallel (⭐⭐)
  • Solution: Square a list of numbers in parallel 2:38
  • Convert a string array to a CSV line (⭐)
  • Solution: Convert a string array to a CSV line 1:45
  • Calculate weighted average with nullable values (⭐⭐)
  • Solution: Calculate weighted average with nullable values 2:35
  • Capitalize each word in a sentence (⭐⭐)
  • Solution: Capitalize each word in a sentence 3:27
  • Create a generic extension method to double all values in a collection (⭐⭐)
  • Solution: Create a generic extension method to double all values in a collection 2:17
  • Format the main diagonal words in a 2D array (⭐⭐)
  • Solution: Format the main diagonal words in a 2D array 2:50
  • Transform and log a list of numbers using Func and Action (⭐⭐)
  • Solution: Transform and log a list of numbers using Func and Action 2:43
  • Flatten and filter a jagged string array (⭐⭐)
  • Solution: Flatten and filter a jagged string array 3:13
  • Process jobs in order using a priority queue (⭐⭐)
  • Solution: Process jobs in order using a priority queue 3:11
  • Calculate statistics from employee incomes (⭐⭐⭐)
  • Solution: Calculate statistics from employee incomes 4:52
  • Perform an inner join on orders and customers (⭐⭐)
  • Solution: Perform an inner join on orders and customers 2:59
  • Validate contest participants (⭐⭐)
  • Solution: Validate contest participants 2:22
  • Simulate a temperature sensor with threshold alerts (⭐⭐)
  • Solution: Simulate a temperature sensor with threshold alerts 2:30
  • Create a value object for money with currency (⭐)
  • Solution: Create a value object for money with currency 2:57
  • Override virtual and abstract methods in a baking product hierarchy (⭐)
  • Solution: Override virtual and abstract methods in a baking product hierarchy 2:19
  • Group anagrams together from a list of words (⭐⭐)
  • Solution: Group anagrams together from a list of words 2:46
  • Convert Roman numerals to integers (⭐⭐)
  • Solution: Convert Roman numerals to integers 3:39
  • Generate a random wizard name (⭐)
  • Solution: Generate a random wizard name 1:35
Chương 3 Bonus section
  • Bonus lecture (discount coupons!)

Requirment

  • Basic knowledge of C#

Outcomes

  • Solve 100 practical C# coding problems in your browser

  • Build confidence through real hands-on practice

  • Master core topics like loops, collections, and LINQ

  • Tackle modern C# features

  • Prepare for C# interviews with real-world challenges

  • Instantly check solutions and learn from video walkthroughs

Instructor

...
Elegant Code – Krystyna Ślusarczyk

0.0

  • ... 0 Student
  • ... 2 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all