0 votes 0 votes closed as a duplicate of: MIT ASSIGNMENT Hii guys.Someone please have a look at this and tell me if I got it right. for(i=1;i<=n;i++) for(j=1;j<=i^2;j++) for(k=1;k<=j;k++) printf("welcome"); what is the time complexity? I got it to be O(n^4). Nayyir asked Sep 30, 2018 • closed Oct 3, 2018 by Shaik Masthan Nayyir 298 views comment Share Follow See all 3 Comments See all 3 3 Comments reply Shaik Masthan commented Sep 30, 2018 reply Follow Share I am getting $\sum_{I=1}^{n}i^{4}$ 0 votes 0 votes Nayyir commented Sep 30, 2018 reply Follow Share I did it many times and finally found O(n^5) to be the resulting dominant term in the expansion of summation . Still not sure though 0 votes 0 votes Swapnil Naik commented Sep 30, 2018 reply Follow Share https://gateoverflow.in/247729/mit-assignment 0 votes 0 votes Please log in or register to add a comment.