Question about 13.13 in 1.4.7

#1

Is substr function O(n)? Is that the reason why each check is O(nm)?

0 Likes

#2

According to http://www.cplusplus.com/reference/string/string/substr/, the answer is Yes.

0 Likes