#bitmanipulation

2026-03-14

Gestern ist das Buch mit den Bitzaubersprüchen angekommen. Da muss man als Softwareentwickler einfach mal drin schmökern. Bevor es verboten wird, weil derartiges Wissen nur noch der KI vorbehalten ist.🤣

Da stehen ohne Ende so Sachen drin wie:

"Use the following formula to turn off the rightmost 1-bit in a word, producing 0 if none (e.g., 01011000 01010000):
x & (x – 1)"

Wobei x ein 32Bit-Wert ist.

#hacker #hackersDelight #programming #bitmanipulation

Buchdeckel: Hacker's Delight von Henry S. Warren
Akshat Singhakshatsingh
2024-11-07

☑️ Day 40/100: daily question

🟨 Question: 2275. Largest Combination With Bitwise AND Greater Than Zero

This was an easy one for medium and I solved it using index bit count.

🐈‍⬛ Check out my where I post all the daily streak 🔥 questions and 🏆 solutions

🔗 Solution Link: github.com/akshatsingh1718/lee

🔗 My Leetcode Github: github.com/akshatsingh1718/lee

Akshat Singhakshatsingh
2024-11-06

☑️ Day 39/100: daily question

🟨 Question: 3011. Find if Array Can Be Sorted

This was an easy one for medium and I solved it using bubble sort.

🐈‍⬛ Check out my where I post all the daily streak 🔥 questions and 🏆 solutions

🔗 Solution Link: github.com/akshatsingh1718/lee

🔗 My Leetcode Github: github.com/akshatsingh1718/lee

Akshat Singhakshatsingh
2024-09-17

👋 Hi everyone! recently, I was solving a LeetCode problem, “Find the Longest Substring Containing Vowels in Even Counts”, and came across an incredibly efficient solution using bit masking. Let me break down the journey step by step.👇
📎 See blog post: medium.com/@akshat.singh1718/h

Akshat Singhakshatsingh
2024-09-11

🧑‍🎓Learning new things on
is essential! 🚀 Today, from , I discovered Brian Kernighan’s Algorithm, which efficiently counts (bits set to 1) in nearly O(1) 🔥 time ⌛. Super handy for ! 💡

2023-05-01

Curious about basic bit manipulation and bitwise operations? Check out this little learning tool I built to help folks develop better intuition for 1's, 0's, and other low-level delectables! www.bitsbud.com

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst