python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What is the big O notation here and how do I figure it out?
There are 1805 elements in this array. I am looping through each one of them and outputting the ID and destroying the follower.
How do I find the big O notation here?
Would the better and quicker opt...
Tonia Saba
Votes: 0
Answers: 1
Insertion Time complexity on Java arrays
I have array of 10 elements. Integer[] arr = new Integer10;
What is the time complexity when I add 5th element like arr[5]=999;. I strongly believe that time complexity in arrays for insertion is O(1...
Bago
Votes: 0
Answers: 3
What will be the complexity of finding a string in an ordered set of strings c++
I have added let's say n number of strings in an ordered set of strings,
set<string>
now i use the find method to find a string, what should be the time complexity of this operation. For intege...
Harsh Chaturvedi
Votes: 0
Answers: 2
Complexity of f(n) in Big O notation
for (i=1;i<n;i++)
{
i=i*2;
}
Can someone please explain what is the complexity of the above one?
For each iteration the of I is changing differently like I*2+2.
Ram
Votes: 0
Answers: 0