It depends if you are seeking to find the single summary network that covers at least all of your list, or the shortest list of networks that covers your list exactly.
In the first case, what Bungicasse described works.
In the second case, it's not very difficult, and is a lot like the problem of handing back change for a payment with a minimal number of coins. You just go through it methodically, with subnets of decreasing size.
You would consider that a /17 (192.168.0.0 to 192.168.127.255) is too large, and that /18 ranges (192.168.0.0 to 192.168.63.255 or 192.168.64.0 to 192.168.127.255) do not align on the right ranges.
So you start with 2 /19 s and fill in with smaller ranges above and below them
- a /24 : 192.168.1.0 to 192.168.1.255
- a /23 : 192.168.2.0 to 192.168.3.255
- a /22 : 192.168.4.0 to 192.168.7.255
- a /21 : 192.168.8.0 to 192.168.15.255
- a /20 : 192.168.16.0 to 192.168.31.255
- a /19 : 192.168.32.0 to 192.168.63.255
- a /19 : 192.168.64.0 to 192.168.95.255,
- a /20 : 192.168.96.0 to 192.168.111.255,
- a /21 : 192.168.112.0 to 192.168.119.255
- a /24 : 192.168.120.0 to 192.168.120.255