If a String is : "Topcoder" and all of it's suffix are :
Now consider c++ code:
std::string str = "Topcoder"; const char* pointer = &str; cout<<pointer<<'\n';
Output is: opcoder
What is the complexity of generating of above suffix upto 1 index of length 7? Linear or Constant ?