Comment

Comment by continuational

Quick take, assuming equal length of a and b:

For each byte index i:

x[i] = a[i] XOR b[i]

return sum(x) == 0

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton