what exactly are you supposed to do when the pipe you've set up between your child and parent processes to communicate the errors in child, itself fails? (read/write/close return -1)
- compute the xor of the entire array
- compute the xor of first n numbers (can be done in O(1))
- answer is xor of the above two results
(1 ^ 2 ^ ... ^ x ^ x ^... n) ^ (1 ^ 2 ^ ... ^ x ^... n) = x since they pairwise cancel eachother. pretty easy actually
- compute the xor of the entire array
- compute the xor of first n numbers (can be done in O(1))
- answer is xor of the above two results
(1 ^ 2 ^ ... ^ x ^ x ^... n) ^ (1 ^ 2 ^ ... ^ x ^... n) = x since they pairwise cancel eachother. pretty easy actually
godbolt is fine. you were running c++ code which is why _Bool is invalid. interestingly, c++ returns true while c actually performs the computation https://t.co/JXI2AQnO2E
399 Followers 198 Followingretired tech twitter memer
I write C, Java and I barely know how to use the amd64 and aarch64 assembler
banner was made by @tehmondspartan (not for me)
72 Followers 509 FollowingThere cannot be peace without first a great suffering, the greater the suffering the greater the peace
https://t.co/TGypCIQRZo
🇵🇰
399 Followers 198 Followingretired tech twitter memer
I write C, Java and I barely know how to use the amd64 and aarch64 assembler
banner was made by @tehmondspartan (not for me)
2K Followers 353 FollowingBending elliptic curves and constructing languages for a living. ZKP researcher. Views are my own, proofs are formally verified. 🏳️🌈🏳️⚧️ she/her
8K Followers 426 FollowingSolo game programmer. Prev Head of Engineering at Proxima and Senior Engineer at @Unity.
Built @playsuckup ($1M+), now building a next gen engine for the web
2K Followers 522 Following18 | Computer Engineering undergrad @esiuclm, creator of https://t.co/BbNWQhgEov, if you like my work support me at https://t.co/AdzOke2rRl
1K Followers 1K Following🏴/acc | Tech Engineer & Entrepreneur | Talking about it so you can learn from my mistakes | My opinions are fortunately also yours | ✝️
17K Followers 128 FollowingSpecializing in solving complex software challenges, with deep expertise in TCP and MySQL kernels, and a strong passion for AI, history, math, and physics.
114 Followers 199 Followingenby
systems dev, C, x86-64 enjoyer
bad tech takes, sometimes cat pics
creator and maintainer of the Limine bootloader
discord/codeberg: at mintsuki
11K Followers 104 FollowingEither your favorite, or your least favorite desktop Linux developer. I make Hyprland and other stuff.
I speak 🇺🇸 🇵🇱 🇯🇵 and a bit of 🇩🇪
31K Followers 1K Followingbased postdoctoral researcher in ai. on trial in south korea for writing true things (see highlights). also building japanese language learning app @sottaku_app
6K Followers 1K Followingpure, lazy, immutable ✝️ "In programming language theory, there is only moral correctness." 🐱👉investi(gati)bg ... #TRAD_YAOI and #AuDHD_NetSlop
1K Followers 3K Followingvoicecoding latency and throughput hacker. How did I get here and what am I doing in this hand basket? @[email protected] @josephhgarvin.bsky.social
14K Followers 996 FollowingA colorful sphere, here to grudge.
Its opinions will never budge.
A vibrant orb, with hues so bright,
Unwavering in its stances and might.