Analzying the following code and answer the complexity of this algorithm public String getString() String s= ""; for(int i =0 ; i < LARGE_NUMBER ; i++) { s += "a"; } return s; }
Anonymous
IAM CONFUSED???? THE COMPLEXITY SHOULD BE O(N)
Check out your Company Bowl for anonymous work chats.