0

hello everyone I was wondering if anyone could explain big-oh estimate to me for c++ data structures. I do not understand it that much and does anyone know of any good websites that have good information on c++ data structures i would greatly appreciate it. Also could anyone explain to me how to use big-oh estimate on the following problem. My prof gave this to us at the end of class saying he would explain how to do solve it the next class day but i have no idea how to do this, would greatly appreciate anyones help. thanks. the following is what he gave us on a handout

    for(int i=1; i<n=10; ++i) 
        for(int j=10; j<n; ++j)
            cout<<i+j;   

this is how it is exactly written on the handout i ran it but it gives no answer so did my prof make a mistake or did he try to mean something else for n=10? Thanks to anyone that can help me out.

2
Contributors
2
Replies
4
Views
4 Years
Discussion Span
Last Post by superchica08
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.