Hi there 👋

This blog is intended to share my knowledge about software architecture, system design, tools, and techniques for producing high-quality software.

LeetCode - Bitwise AND of Numbers Range

The problem Given two integers left and right that represent the range [left, right], return the bitwise AND of all numbers in this range, inclusive. Example 1: Input: left = 5, right = 7 Output: 4 Example 2: Input: left = 0, right = 0 Output: 0 Example 3: Input: left = 1, right = 2147483647 Output: 0 Constraints: 0 <= left <= right <= 2^31 - 1 Explanation This problem is a great one. I haven’t had so much fun in a long time. ...

October 30, 2026 Â· 3 min Â· Dmytro Chumakov

LeetCode - Candy

The problem There are n children standing in a line. Each child is assigned a rating value given in the integer array ratings. You are giving candies to these children subjected to the following requirements: Each child must have at least one candy. Children with a higher rating get more candies than their neighbors. Return the minimum number of candies you need to have to distribute the candies to the children. ...

October 25, 2026 Â· 2 min Â· Dmytro Chumakov

LeetCode - Minimum Path Sum

The problem Given an m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path. Note: You can only move either down or right at any point in time. Example 1: Input: grid = [[1,3,1],[1,5,1],[4,2,1]] Output: 7 Explanation: Because the path 1 → 3 → 1 → 1 → 1 minimizes the sum. Example 2: ...

October 19, 2026 Â· 5 min Â· Dmytro Chumakov

LeetCode - Integer Break

The problem Given an integer n, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers. Return the maximum product you can get. Example 1: Input: n = 2 Output: 1 Explanation: 2 = 1 + 1, 1 × 1 = 1. Example 2: Input: n = 10 Output: 36 Explanation: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36. Constraints: ...

October 14, 2026 Â· 3 min Â· Dmytro Chumakov

LeetCode - Path With Minimum Effort

The problem You are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where heights[row][col] represents the height of cell (row, col). You are situated in the top-left cell, (0, 0), and you hope to travel to the bottom-right cell, (rows-1, columns-1) (i.e., 0-indexed). You can move up, down, left, or right, and you wish to find a route that requires the minimum effort. ...

October 9, 2026 Â· 4 min Â· Dmytro Chumakov