Edi Wang

Microsoft MVP for Azure

Posts in January 2025

Understanding the "Efficient Shipping" Interview Question in C#

When preparing for interviews, you'll often come across optimization problems that test both your problem-solving skills and your ability to write efficient code. I have such an interesting programming interview question years ago. The Efficient Shipping problem. Let's break it down and analyze the solution. And to understand the flaws in the first version of my code and how we can improve it.
C# Algorithm

How to Stop Automatically Switching to New Outlook

Microsoft introduced the new Outlook last year. Many users, including myself, are not fond of the new Outlook. In early 2025, I discovered that Microsoft plans to automatically install the new Outlook on new Windows 11 machines. Additionally, users will be forced to switch to the new Outlook after opening the classic Outlook app a few times. What’s even more frustrating is that even if you uninstall the new Outlook app, it will reappear after some time. In this blog post, I’ll share a method to disable this automatic upgrade behavior.
Microsoft Office

Automating Price Calculation from File Names Using PowerShell

Manually extracting and summing prices embedded in file names for a large number of files is time-consuming and is easy to make errors. This blog post introduces a PowerShell script designed to automate this process efficiently. The script scans a specified directory, identifies file names containing prices using a regex pattern, extracts these values, and calculates their total, making it an ideal solution for tasks like invoice management.
PowerShell