Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
leetcode: finished #858
Browse files Browse the repository at this point in the history
  • Loading branch information
xqm32 committed Jan 24, 2024
1 parent cfd16f8 commit a6e6023
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/leetcode/2024/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ title: 2024.1
draft: false
---

# 2024.1.24

```python
#
# @lc app=leetcode.cn id=858 lang=python3
#
# [858] 镜面反射
#


# @lc code=start
class Solution:
def mirrorReflection(self, p: int, q: int) -> int:
while p % 2 == 0 and q % 2 == 0:
p, q = p // 2, q // 2
return 1 - p % 2 + q % 2


# @lc code=end
```

# 2024.1.23

```python
Expand Down

0 comments on commit a6e6023

Please sign in to comment.