Question on the Big-O runtime efficiency
Need some help with these problems
Assume T(n) is a count of the number of key operations for an algorithm that processes a list of n elements....
Type: Posts; User: newbiec++
Question on the Big-O runtime efficiency
Need some help with these problems
Assume T(n) is a count of the number of key operations for an algorithm that processes a list of n elements....
I fixed it and it works now.
Thanks guys :)
I thought I got the smallest function to work but it only returns the first number entered.
Here is what I put in:
int indexSmallestElement (const int list[], int listSize)
{
int index;...
It worked !!!!!
I don't know if I could have figured it out by myself I am still very green.
Brain your code is way over my head right now. I hope to get that good one day.
To output the...
I used the follwing code that was provided by jmd15
Code:
int index;
for (index = listSize; index >=0; index--)
cout << list[index] << " ";
[/code]
It does print out the reverse,...
I am trying to get my program to return the smallest number and then output my list in reverse order. My largest function works but I can't figure out how to do the smallest or the reverse order....
I need some help. My output is all wrong. I am trying to get output of cost of books purchased (will be different amounts according to category), sales tax due, total due, category and number of...
That is exactly what I was looking for. I thought if/else would be o.k. but was not sure.
Not really ripping off old faithful this was just some random numbers.
Thanks
Do I use if / else or is there a simpler way to do it with an equation?
I have a math problem. I have 3 categories of customers:
old
new
temporary
They can purchase books at the following rates:
old: 1-5 purchased = 50.00 each
6 or more = 45.00 each
You understood what I was looking for.
I changed my question to try and clarify what I was looking for. When you are new to C++ it is hard to even know how to phrase your questions to get the...
Can someone explain a value - returning function
You guys are great. My program is perfect. I did the calculations in the way you described above and it worked perfectly. Thank You So Much!!!!!
I need a math solution I guess. I want to be able to put in any number of miles driven and the number of rented and have it compute the bonus points.
I am a newbie to programming and I have a problem. I need to put this in the correct syntax.
Daily bonus points are accrued at 300 points for every three days.
Mileage bonus points are are...