resolution for near-symmetric from brilliant.org