home.social

#bitmanipulation — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bitmanipulation, aggregated by home.social.

  1. 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

  2. ☑️ 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: github.com/akshatsingh1718/lee

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

    #Algorithms #coding #python #bitmanipulation

  3. ☑️ 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: github.com/akshatsingh1718/lee

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

    #python #Algorithms #coding #sorting #bitmanipulation

  4. 🧑‍🎓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

  5. 🧑‍🎓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

  6. 🧑‍🎓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

  7. 🧑‍🎓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

  8. 🧑‍🎓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

  9. 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: hackaday.com/2020/01/24/little #microcontrollers #bitmanipulation #computerhacks #bittwiddling #spreadsheet #registers #7segment #how-to #excel #issi #led #c

  10. 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: hackaday.com/2020/01/16/these- #bitmanipulation #softwarehacks #classichacks #bittwiddling #registers #bitmath #shift #bits #mask

  11. 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: hackaday.com/2019/06/19/abusin #bitmanipulation #briankernighan #softwarehacks #bitarithmetic #bitcounting