FrankieWilson
banner
frankiewilson.bsky.social
FrankieWilson
@frankiewilson.bsky.social
A s.e
She's grown so lovely
June 19, 2025 at 8:11 PM
Lols 😆 Same here as well 🤣
January 16, 2024 at 11:47 AM
Fb bro
January 16, 2024 at 7:22 AM
I see. Without that, the bit manipulation would have won
January 16, 2024 at 7:15 AM
Try with larger input.. just trying out
January 16, 2024 at 6:38 AM
That's right

Over 100 ms.. c'mon
January 16, 2024 at 6:34 AM
Well.. what can I say 🤷 👍
January 16, 2024 at 6:26 AM
Nope, I didn't benchmark... I'm just saying based on the nature of their operations.

Though they are almost the same , the bit manipulation tends to perform better under a higher magnitude of data input
January 16, 2024 at 6:25 AM

def reversed(x: int) -> int:
num = 0
for _ in range (512):
num = (num << 1) | (x & 1)
x >>= 1
return num

though, it is longer but is faster than having to convert num to binary string and then reverse it becs it directly manipulates the individual bits.

I may be wrong
January 16, 2024 at 6:01 AM
There's absolutely a faster way of doing this using bit manipulation. I'll write a simple function to prove it, although I'm busy now but will definitely show u why I said bit manipulation is faster
January 15, 2024 at 9:00 AM
I don't agree with you sir.

Python built in l support for bit manipulation is way much faster than the string manipulation
Especially working with large amount of data
January 15, 2024 at 8:14 AM
You meant "clearer "...

Obviously not faster
January 15, 2024 at 8:00 AM
So sad, we won't witness it
January 15, 2024 at 7:45 AM
Didn't know the numbers... is that high
January 15, 2024 at 7:17 AM
This is soo cool 😎
January 15, 2024 at 7:14 AM
You're very right ✅️
January 15, 2024 at 7:12 AM
Thought apple claimed iPhone can't be hacked 🤔
January 13, 2024 at 4:28 PM
At that moment, u felt "oh shi!t I've gotta post it on blusky" 😆
January 13, 2024 at 4:26 PM
Thanks for this
January 13, 2024 at 4:23 PM
Black skin (for the people to be impressed) but white government mindset
January 13, 2024 at 4:16 PM
There are so many things we may never know.
January 13, 2024 at 4:14 PM
Lols 😆. Okay will do that
December 10, 2023 at 8:52 PM