Skip to content

Commit 15a1dbe

Browse files
committed
Formatting for code wars submission
Decreases vertical size
1 parent 2c58815 commit 15a1dbe

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

Diff for: CodeWars/src/UpsideDownNumbers/Solution1.cpp

+6-27
Original file line numberDiff line numberDiff line change
@@ -35,42 +35,21 @@ struct DigitStore
3535
throw std::logic_error("Both internal digits store are to be the same size");
3636

3737
}
38-
int nextOrigDigit()
39-
{
40-
return origDigitStore.front();
41-
}
38+
int nextOrigDigit() { return origDigitStore.front(); }
4239

43-
int nextReverseDigit()
44-
{
45-
return reverseDigitStore.top();
46-
}
40+
int nextReverseDigit() { return reverseDigitStore.top(); }
4741

48-
void pop()
49-
{
50-
origDigitStore.pop();
51-
reverseDigitStore.pop();
52-
}
42+
void pop() { origDigitStore.pop(); reverseDigitStore.pop(); }
5343

54-
int size()
55-
{
56-
return origDigitStore.size();
57-
}
44+
int size() { return origDigitStore.size(); }
5845

59-
bool empty()
60-
{
61-
return !size();
62-
}
46+
bool empty() { return !size(); }
6347

6448
std::queue<int> origDigitStore;
6549
std::stack<int> reverseDigitStore;
66-
6750
};
6851

69-
bool singleDigit(int x)
70-
{
71-
return !x / 10;
72-
}
73-
52+
bool singleDigit(int x) { return !x / 10; }
7453

7554
int solve(int x, int y)
7655
{

0 commit comments

Comments
 (0)