Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#bitmask

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

6 articles in the current browsing window, ordered by publication date.

LeetCode 46 Permutations: Master Backtracking with Three Solutions That Impress Interviewers

This article thoroughly explains LeetCode 46 Permutations as the foundational backtracking problem, covering standard used-array approach, in-place swap optimization, and bitmask technique with lowbit, plus complexity analysis, common pitfalls, and interview follow-up strategies.

LeetCode 37 Sudoku: From Brute Force to Millisecond Solving with Bitmask & MRV

This article walks through solving LeetCode 37 Sudoku using backtracking with three optimization tiers: brute-force validation, boolean state arrays for O(1) constraint checks, and bitmask combined with MRV heuristic achieving 1-3ms runtime, plus 10 common interview follow-up questions and a pitfall checklist.

One TINYINT Field, Four Notification Switches: Bitmask Pattern in Practice

This article demonstrates how to store four independent notification channel switches (SMS, email, in-app, WeChat) in a single MySQL TINYINT column using bitwise operations, covering schema design, SQL queries, Java enum and utility classes, service and controller layers, MyBatis mapper, extensibility to N channels, and key considerations like indexing, concurrency, and readability.

Applying the Open‑Closed Principle and Bitmask Design for Extensible System Architecture

The article explains the six SOLID design principles, emphasizes the importance of the Open‑Closed principle, and demonstrates how to achieve extensible database schemas and APIs using type fields, extendable JSON columns, bitmap role encoding, and strategy/template patterns with concrete Java code examples.

Cutting Invalid Data: How Zhaunzhuan Optimized Its Product Service for 3× Faster Performance

This article examines how Zhaunzhuan's product service, a core component of its e‑commerce platform, was optimized by reducing unnecessary data transmission, applying cache‑aside patterns, redesigning Redis storage, and introducing a field‑marking approach, resulting in dramatically lower GC overhead, network traffic, and response times.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.