Split the problem into “processing when the signs are aligned” and “processing to align the signs” problem transformation. Be careful not to forget the case of zero
This page is auto-translated from /nishio/符号を揃える using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.