Programming Competition and Programming Interview questions. And maybe some web stuff, too.
I had to write this by hand at an interview with a local company. Pretty sure I aced it.
Given a string, write a method to return all possible substrings of the string.
Solution: Complexity O(n^2).
O(n^3)
What makes you say that?
O(n^3)
ReplyDeleteWhat makes you say that?
Delete