Comment Comment by danbruc The first Python implementation is bad - removing the first element in each iteration is O(n), the C implementation gets this right by maintaining one index into each list instead of modifying the lists. parent danbruc 5 years ago