Skip to content

Commit b242c91

Browse files
authored
Update simplified-fractions.cpp
1 parent f4c069c commit b242c91

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

C++/simplified-fractions.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,7 @@ class Solution {
1919
return result;
2020
}
2121

22-
private:
23-
int gcd(int a, int b) {
24-
while (b != 0) {
25-
int tmp = b;
26-
b = a % b;
27-
a = tmp;
28-
}
29-
return a;
30-
}
31-
22+
private:
3223
template <typename T>
3324
struct PairHash {
3425
size_t operator()(const pair<T, T>& p) const {

0 commit comments

Comments
 (0)