Leetcode 713. Subarray Product Less Than K
We solve the subarray product problem either with a sliding window in O(n), or by transforming products into prefix sums via logarithms and applying binary search in O(n log n).
We solve the subarray product problem either with a sliding window in O(n), or by transforming products into prefix sums via logarithms and applying binary search in O(n log n).
If two prefix sums have the same remainder modulo k, their difference is divisible by k.
The O(n^2) Solution is easy to understand, so I will just explain why the Hash Table works.
Sometimes when I’m playing games on my phone, ads pop up and I get too lazy to reach for it just to click close. I thought it’d be easier if I could control my phone directly with my mouse while sitting at the computer—and that’s how I ended up using scrcpy.
What started as a small classroom exercise—just moving a single player around the console to eat food—quickly grew into something bigger. The more I coded, the more fun it became, and before I knew it, I had expanded the idea into a full Snake game.
This blog is a note of learning C# and .NET.
GitHub Actions is a CI/CD and automation tool built into GitHub. Workflows allow you to automate tasks like testing, building, deploying, or managing your code lifecycle.
This note covers the management and monitoring, governance and compliance and cost management. This section account for about 30%-35% of the exam and provide a solid understanding of manage and governance Azure.
This note covers the compute, networking, and storage services sections of the AZ-900 exam. It includes key Azure services such as virtual machines, virtual networks, and storage accounts, along with modern tools like Azure Functions and Azure OpenAI. These sections account for about 35–40% of the exam and provide a solid understanding of Azure’s core service offerings.
This note covers key topics from the AZ-900 exam, including Azure architecture, Microsoft Entra ID, and Azure security. It introduces core concepts like global infrastructure, identity management, and security tools such as Conditional Access and Defender for Cloud. Together, these topics make up about 35–40% of the exam and form the foundation of Azure fundamentals.