Skip to content

Commit ed7a971

Browse files
april 7
1 parent 32ea6eb commit ed7a971

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Challenges/2021/April-LeetCoding-Challenge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ None
1919
|622.|[Design Circular Queue](https://leetcode.com/problems/design-circular-queue/)|[Python](/Medium/622.DesignCircularQueue.py)|Medium|
2020
|775.|[Global and Local Inversions](https://leetcode.com/problems/global-and-local-inversions/)|[Python](/Medium/775.GlobalandLocalInversions.py)|Medium|
2121
|1551.|[Minimum Operations to Make Array Equal](https://leetcode.com/problems/minimum-operations-to-make-array-equal/)|[Python](/Medium/1551.MinimumOperationstoMakeArrayEqual.py)|Medium|
22+
|1704.|[Determine if String Halves Are Alike](https://leetcode.com/problems/determine-if-string-halves-are-alike/)|[Python](/Easy/1704.DetermineifStringHalvesAreAlike.py)|Easy|
2223

2324
## License
2425
The code is open-source and licensed under the [MIT License](/LICENSE).

Medium/1551.MinimumOperationstoMakeArrayEqual.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
Output: 9
2828
2929
Constraints:
30-
3130
- 1 <= n <= 10^4
3231
'''
3332
#Difficulty: Medium
@@ -44,4 +43,4 @@ def minOperations(self, n: int) -> int:
4443
y = 0
4544
for i in range(n//2):
4645
y += x - (i*2+1)
47-
return y
46+
return y

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In this repository provided my Python solutions of LeetCode problems.
2222
- [January LeetCoding Challenge](/Challenges/2021/January-LeetCoding-Challenge.md) - 27/31
2323
- [February LeetCoding Challenge](/Challenges/2021/February-LeetCoding-Challenge.md) - 23/28
2424
- [March LeetCoding Challenge](/Challenges/2021/March-LeetCoding-Challenge.md) - 23/31
25-
- [April LeetCoding Challenge](/Challenges/2021/April-LeetCoding-Challenge.md) - 4/30
25+
- [April LeetCoding Challenge](/Challenges/2021/April-LeetCoding-Challenge.md) - 5/30
2626
<br><br>
2727
## Solutions
2828
*P.S. If you like this, please leave me a star.*

0 commit comments

Comments
 (0)