My math-fu is failing me! I need an efficient way of reducing network ranges to supersets, e.g. if I input list of IP ranges:
Alright, my coworker came up with this answer, which I think is pretty excellent. Let me know if you see any issues: