Categories
软件 [15]
Archives
February 2008 |
The intersect of two stringsguocongbin | 11/16 2005, 08:33
The algorithm to get the intersect of two string written in python The problem is to get the intersect of two strings, for example, the intersect of 'guocongbin' and 'greatman' is 'gn'. I use a map data structure to solve the problem. def intersect(a,b): Comments0 Responses to “The intersect of two strings”Add comment |