Best of C# — September 2023
- 1
- 2
freeCodeCamp·3y
How to Use Dynamic Programming to Solve the 0/1 Knapsack Problem
The 0/1 Knapsack Problem is often used as a pedagogical tool to teach two important paradigms in algorithm design: Dynamic Programming and Greedy Algorithms. You will learn how it works and discover how to build an efficient solution from scratch using C#.
- 3
Code Maze·3y
Using a Discard Variable in C#
C# 7 introduced discards as placeholders for values we do not have any use for in our code. They are write-only variables that allow us to explicitly inform the compiler or anyone reading our code to discard their content. They are particularly useful in scenarios where we receive a value but have no intention of using it.