Name: Anonymous 2011-01-27 4:38
strlen(3) is FUCKING O(n)!
strlen(3) is FUCKING O(n)!
O(n + k) unless you pass two pointers. Keep it in string[0] and pass string[1] to library functions. Better yet, don't write code that calls strlen more often than it does something meaningful with the contents.