Problem 304. Bottles of beer
Solution Stats
Problem Comments
-
10 Comments
The correct answer should be always 0, :)
If zero is the number that's input into the function, you end up with -1 bottles of beer on the wall?
Negative beer amounts? Oh dear
Negative amounts of beer? Means you are drunk then:)
Do you seriously require a matlab program to solve this?:/
Problem worth solving.
Beer all the way..Cheers..!!
could be a bit more challenging...
For instance, why don't calculate the statistic probabillity how many beer is drunk by male & female party people during one night. With exponential increasing amount of drunken beer in the later hours... ;-)
Easy!
good
Simply fun.
Solution Comments
-
1 Comment
It is weird that I've been wrong for twice.
-
1 Comment
This user (mohamed elbesealy) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
-
2 Comments
what is the problem in my solution? why it is showing error.
output is named 'remaining' and not 'y'
-
1 Comment
Did I miss the twist?
-
1 Comment
D: What the ...
Hooray BEER! :D
Problem Recent Solvers2066
Suggested Problems
-
5633 Solvers
-
Return a list sorted by number of occurrences
2133 Solvers
-
2905 Solvers
-
Create an index-powered vector
564 Solvers
-
415 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!