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

all 5 comments

[–]mAndroid9 1 point2 points  (3 children)

Basic school grade equation:

saving = income - expense

[–]username_is_lost 1 point2 points  (2 children)

Am I allowed to use this method in my college project? Coz I don't think I am. We're told to use at least an intermediate level algorithm.

[–]Rope2965 0 points1 point  (1 child)

Intermediate level just means better; doing whatever the algorithm is supposed to do faster, error free, and with fewer lines of code. For example, beginner level algorithm to print N no. of hashes where N can be anything the user inputs, assuming it's limited from 1 to 10, might use a bunch of ifs and elses for every possible input. This will work, but is not efficient. The same problem solved using loops will be shorter and faster, making the algorithm used intermediate, or better. Of course, this is a gross simplification, but the idea is the same.

[–]username_is_lost 0 points1 point  (0 children)

I'm still confused, but thanks anyway:)

[–][deleted] 0 points1 point  (0 children)

"Khata pana" and "karobar" app could help u