What does StringBuilder initialization do behind the scenes in the code below? Also what is the time complexity for StringBuilder initialized with a string?
string str = "fubar";
StringBuilder sb = new StringBuilder(str);
I was wondering if it does an O(n) append behind the scenes, or does it in O(1) time.