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

☑️ Day 40/100: #Leetcode 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 #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumNumberofChangestoMakeBinaryStringBeautiful

🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode

#Algorithms #coding #python #bitmanipulation

leetcode/minimumNumberofChangestoMakeBinaryStringBeautiful at main · akshatsingh1718/leetcode

Contribute to akshatsingh1718/leetcode development by creating an account on GitHub.

GitHub

☑️ Day 39/100: #Leetcode 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 #GitHub where I post all the daily streak 🔥 questions and #LeetcodeContest 🏆 solutions

🔗 Solution Link: https://github.com/akshatsingh1718/leetcode/tree/main/minimumNumberofChangestoMakeBinaryStringBeautiful

🔗 My Leetcode Github: https://github.com/akshatsingh1718/leetcode

#python #Algorithms #coding #sorting #bitmanipulation

leetcode/minimumNumberofChangestoMakeBinaryStringBeautiful at main · akshatsingh1718/leetcode

Contribute to akshatsingh1718/leetcode development by creating an account on GitHub.

GitHub

👋 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: https://medium.com/@akshat.singh1718/how-i-got-fascinated-by-bit-masking-in-algorithms-6626b4f2c929

#bitmasking #Algorithms #bitmanipulation #optimization

🚀 How I Got Fascinated by Bit Masking in Algorithms 🧠

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…

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

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

#bitwiseoperations #bitmanipulation #binary