Software Engineer's Blog

Blog posts — page 22

53. Maximum Subarray

Coding Interview

53. Maximum Subarray

Jason Yang · 29 Nov, 2025

Maximum Subarray (LeetCode 53): Kadane's algorithm explained as one decision — extend or restart — plus the O(n) to O(1) space drop and a full worked trace.

Designing Effective Custom Exceptions in Java

Programming Language

Designing Effective Custom Exceptions in Java

Jason Yang · 29 Nov, 2025

Design effective custom exceptions in Java: structure them well, separate business and system errors, and integrate cleanly with Spring Boot error handling.

238. Product of Array Except Self

Coding Interview

238. Product of Array Except Self

Jason Yang · 28 Nov, 2025

Product of Array Except Self (LeetCode 238): the prefix and suffix product trick that avoids division for an O(n) solution, with an interactive visual.