#bitmanipulation — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #bitmanipulation, aggregated by home.social.
-
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.
-
☑️ 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
-
☑️ 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
-
🧑🎓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 -
🧑🎓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 -
🧑🎓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 -
🧑🎓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 -
🧑🎓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 -
Little Hex Tricks Make Little Displays a Little Easier - Depending on the device in hand and one’s temperament, bringing up a new part can be a frolic throug... more: https://hackaday.com/2020/01/24/little-hex-tricks-make-little-displays-a-little-easier/ #microcontrollers #bitmanipulation #computerhacks #bittwiddling #spreadsheet #registers #7segment #how-to #excel #issi #led #c
-
These Bit Twiddling Tricks Will Make Your Coworkers Hate You - In the embedded world, twiddling a few bits is expected behavior. Firmware is far enough down the st... more: https://hackaday.com/2020/01/16/these-bit-twiddling-tricks-will-make-your-coworkers-hate-you/ #bitmanipulation #softwarehacks #classichacks #bittwiddling #registers #bitmath #shift #bits #mask
-
Abusing A CPU’s Adders To Optimize Bit Counting - If you like nitpicking around C code and generated assembly language — and we’ll admit that we do ... more: https://hackaday.com/2019/06/19/abusing-a-cpus-adders-to-optimize-bit-counting/ #bitmanipulation #briankernighan #softwarehacks #bitarithmetic #bitcounting