More Python

Longest Increasing Subsequence

8 min
The goal is to build the longest subsequence of sorted numbers from a given sequence that can be in any order. For each number in the original sequence you can either choose to have it in the subsequence or not. Once you …

Socket Addresses in a IPv6 World

2 min
Socket addresses are tuples that you use when you want to specify where a socket should listen (bind) or connect to. In IPv4 they are simply a pair composed by an address and a port but in IPv6 they also include a scope id. …