File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
solution/0800-0899/0860.Lemonade Change Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class Solution {
141141class Solution {
142142public:
143143 bool lemonadeChange(vector<int >& bills) {
144- int five = 0, ten = 10 ;
144+ int five = 0, ten = 0 ;
145145 for (int v : bills) {
146146 if (v == 5) {
147147 ++five;
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ class Solution {
126126class Solution {
127127public:
128128 bool lemonadeChange(vector<int >& bills) {
129- int five = 0, ten = 10 ;
129+ int five = 0, ten = 0 ;
130130 for (int v : bills) {
131131 if (v == 5) {
132132 ++five;
Original file line number Diff line number Diff line change 11class Solution {
22public:
33 bool lemonadeChange (vector<int >& bills) {
4- int five = 0 , ten = 10 ;
4+ int five = 0 , ten = 0 ;
55 for (int v : bills) {
66 if (v == 5 ) {
77 ++five;
@@ -22,4 +22,4 @@ class Solution {
2222 }
2323 return true ;
2424 }
25- };
25+ };
You can’t perform that action at this time.
0 commit comments