Recent Posts
Jane Street's Puzzles October 2024: Knights Moves 6
Published: at 01:02 PMThrough a combination of DFS, Sympy, and key optimizations, I enhanced a brute-force approach to find the correct solution to this month’s Jane Street puzzle.
Building a Probability-Based Random Number Generator
Published: at 04:04 PMRecently, I tackled an interesting coding task; the objective was to implement a method, `next_num()`, that generates random numbers based on predefined probabilities.
Functional Programming in C#
Published: at 03:13 PMFunctional programming treats computation as the evaluation of functions, avoiding mutable data and side effects. It emphasizes pure functions, making code more predictable, testable, and composable, contrasting with traditional paradigms like OOP.
Delegates in C#
Published: at 05:53 PMIn C#, delegates are types that represent method references, enabling functional programming within an object-oriented framework. They allow methods to be passed as parameters and invoked dynamically.
Leveraging Expressions in C#
Published: at 03:55 PMThis article shows how to make C# code cleaner and more maintainable by using expressions instead of statements. By embracing these expression-based features, we create more concise and maintainable code.