Skip to content

Commit 16d50f6

Browse files
committed
Runtime: 0 ms (Top 100.00%) | Memory: 5.8 MB (Top 70.14%)
1 parent b82f670 commit 16d50f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
// Runtime: 0 ms (Top 100.00%) | Memory: 5.8 MB (Top 70.14%)
12
class Solution {
23
public:
34
int mirrorReflection(int p, int q) {
4-
while (p % 2 == 0 && q % 2 == 0){
5+
while (p % 2 == 0 && q % 2 == 0){
56
p/=2;
67
q/=2;
78
}
89
return 1 - p % 2 + q % 2;
910
}
10-
};
11+
};

0 commit comments

Comments
 (0)