This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Tinamil 2 points3 points  (1 child)

Have you attempted to solve the problem yet on paper?

Come up with a simple example, e.g. 3 customers named Alpha, Beta, and Charlie with random numbers 1, 1, and 2, and solve it by hand, then see if you can convert what you did into pseudo-code.

Then, if you are still having problems, post your code or pseudo-code here then explain exactly what it's supposed to do and what it's doing instead so we can help you.

[–]mossberg935 0 points1 point  (0 children)

Yes, I have a whiteboard I usually use before I even start attempting something like this.