W West30 New member Mar 9, 2010 #1 can anyone give me an example of a function that is both O(n2) and O(n3).