Tagged articles
11 articles
Page 1 of 1
Java Tech Enthusiast
Java Tech Enthusiast
Feb 8, 2026 · Fundamentals

Detecting Powers of Two in Java: Bitwise Tricks and Edge Cases

The author shares a workplace frustration about unfair performance metrics, then illustrates how a hidden 1024‑byte boundary bug led to a discussion of the classic “power‑of‑two” problem, providing clear bit‑wise logic, edge‑case handling, and ready‑to‑run Java code for detecting powers of two.

JavaPower of Twoalgorithm
0 likes · 6 min read
Detecting Powers of Two in Java: Bitwise Tricks and Edge Cases
Liangxu Linux
Liangxu Linux
Jun 8, 2025 · Fundamentals

9 Essential C Code Snippets Every Embedded Engineer Should Know

This article presents a curated collection of nine high‑utility C code snippets for embedded development, covering a circular buffer, custom assertions, bit reversal, fixed‑point arithmetic, endianness conversion, bit masks, timer handling, binary search, and a simple bitset structure, each with concise explanations and ready‑to‑use implementations.

Binary SearchC programmingData Structures
0 likes · 6 min read
9 Essential C Code Snippets Every Embedded Engineer Should Know
BirdNest Tech Talk
BirdNest Tech Talk
Oct 9, 2024 · Fundamentals

Unlocking the Power of Bit Manipulation: Real‑World Uses and Go Tips

This article explains why bit manipulation is a staple technique in computer science, detailing performance gains, state flag encoding, mask operations, data compression, cryptography, image processing, hash structures, binary counting, and algorithm design, with practical Go examples.

GoHashingImage Processing
0 likes · 3 min read
Unlocking the Power of Bit Manipulation: Real‑World Uses and Go Tips
Liangxu Linux
Liangxu Linux
Sep 21, 2024 · Fundamentals

Essential C Utility Code Snippets Every Embedded Developer Should Know

This article presents a curated collection of high‑impact C utility code examples—including a circular buffer, assertion macro, bit‑reversal function, fixed‑point arithmetic, endianness conversion, bit masks, timer handling, binary search, and a simple bitset—explaining their purpose and showing ready‑to‑use implementations for embedded systems.

CCode SamplesData Structures
0 likes · 7 min read
Essential C Utility Code Snippets Every Embedded Developer Should Know
Liangxu Linux
Liangxu Linux
Feb 20, 2024 · Fundamentals

9 Essential C Utility Snippets Every Embedded Engineer Should Know

This article presents nine powerful C utility code examples—including a circular buffer, custom assertions, bit reversal, fixed‑point arithmetic, endianness conversion, bit masks, timer handling, binary search, and a simple bitset—explaining their purpose and demonstrating how they can improve performance and maintainability in embedded system development.

CData Structuresbit manipulation
0 likes · 7 min read
9 Essential C Utility Snippets Every Embedded Engineer Should Know
Liangxu Linux
Liangxu Linux
Jul 11, 2023 · Fundamentals

Unlock the Power of Bitwise Operations in C: Tips, Tricks, and Real‑World Code

This article explains the fundamentals of bitwise operations in C, covering their advantages, operator symbols, precedence, common tricks such as parity checks, power‑of‑two tests, swapping values, bit masks, and includes numerous code snippets and practical examples for efficient low‑level programming.

algorithm tricksbit manipulationbitwise
0 likes · 13 min read
Unlock the Power of Bitwise Operations in C: Tips, Tricks, and Real‑World Code
Architect's Guide
Architect's Guide
Sep 9, 2022 · Fundamentals

A Comprehensive Overview of Java Bitwise Operators

This article provides a detailed introduction to Java's seven bitwise operators, explains their binary logic, demonstrates shift operations, and showcases common practical uses such as power-of-two multiplication and parity checks with clear code examples and visual illustrations.

JavaJava Basicsbit manipulation
0 likes · 9 min read
A Comprehensive Overview of Java Bitwise Operators
Sohu Tech Products
Sohu Tech Products
Apr 1, 2020 · Fundamentals

Bitwise Operations: Techniques and Applications in Algorithmic Problems

This article introduces the basics of bitwise operations, common operators, practical tricks such as checking parity, setting or clearing bits, and demonstrates their use in solving classic algorithmic challenges like the poison bottle puzzle, power‑of‑two detection, counting set bits, and the 8‑Queens problem.

algorithmbit manipulationbitwise
0 likes · 17 min read
Bitwise Operations: Techniques and Applications in Algorithmic Problems
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 11, 2019 · Fundamentals

Common Algorithm Tricks: Bit Manipulation, Two‑Pointer Techniques, and XOR Applications

This article reviews several practical algorithm tricks—including using n&(n‑1) to clear the lowest set bit, counting bits, converting numbers, applying double‑pointer methods to linked lists and sorted arrays, and leveraging XOR properties—to simplify typical interview coding problems.

algorithmbit manipulationtwo pointers
0 likes · 9 min read
Common Algorithm Tricks: Bit Manipulation, Two‑Pointer Techniques, and XOR Applications
ITPUB
ITPUB
Apr 24, 2017 · Fundamentals

Essential Algorithm Cheat Sheet: Sorting, Graph, Greedy, and Bit Operations

This article provides a concise reference of core algorithms—including sorting methods, graph traversals, shortest‑path techniques, greedy strategies, bit‑level manipulations, and asymptotic notation—detailing their stability, time complexities, key concepts, and practical examples for interview preparation.

AlgorithmsInterview PreparationSorting
0 likes · 8 min read
Essential Algorithm Cheat Sheet: Sorting, Graph, Greedy, and Bit Operations