76. Construct UART Data Frame with Parity Bit

Discussions1
Log in to post comments and replies.
You
Loading editor...
NickGrigoriadis
NickGrigoriadis
Aug 28 2025

Hey everyone, just a heads-up — I followed the instructions exactly as written, especially this part:

"Odd parity ➝ parity bit = 0 if 1s are odd, 0 if even."

But when I submitted my solution, it didn't pass all the tests.

After checking the test cases, it looks like they're actually based on standard parity rules, not the ones described in the task. Here's the correct logic:

  • Even parity ➝ parity bit = 0 if 1s are even, 1 if 1s are odd.
  • Odd parity ➝ parity bit = 1 if 1s are even, 0 if 1s are odd.

So if your implementation is failing tests even though you followed the instructions, try switching to the standard parity logic instead.

+5
RohitTelkar
RohitTelkar
May 25 2026

Hi Nick!
Thanks so much for pointing out the issue.
Our development team is trying to fix it asap.

+3
shantanu
shantanu
Aug 28 2025edited

That's a typing mistake, actually.
It's fixed just now.
 

+1