Skip to content

Commit 81acf05

Browse files
Zanger67/leetcodeZanger67/leetcode
Zanger67/leetcode
authored and
Zanger67/leetcode
committed
Updated markdown files
1 parent 0aaa8ba commit 81acf05

10 files changed

+47
-8
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# **[LeetCode Records](https://leetcode.com/u/Zanger/)** (615 solved)
1+
# **[LeetCode Records](https://leetcode.com/u/Zanger/)** (616 solved)
22

33
<!-- This readme was generated using [WikiLeet](<https://github.com/Zanger67/WikiLeet>) -->
44

@@ -155,6 +155,7 @@ This repo is a collection of my LeetCode solutions, primarily written in Python,
155155
| 251 | [Flatten 2D Vector](<https://leetcode.com/problems/flatten-2d-vector>) | Medium | | [solution](<markdowns/_251. Flatten 2D Vector.md>) | py |
156156
| 260 | [Single Number III](<https://leetcode.com/problems/single-number-iii>) | Medium | | [solution](<markdowns/_260. Single Number III.md>) | py |
157157
| 261 | [Graph Valid Tree](<https://leetcode.com/problems/graph-valid-tree>) | Medium | B75, N150, Weekly Premium | [solution](<markdowns/_261. Graph Valid Tree.md>) | py |
158+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<markdowns/_266. Palindrome Permutation.md>) | py |
158159
| 271 | [Encode and Decode Strings](<https://leetcode.com/problems/encode-and-decode-strings>) | Medium | B75, N150 | [solution](<markdowns/_271. Encode and Decode Strings.md>) | py |
159160
| 272 | [Closest Binary Search Tree Value II](<https://leetcode.com/problems/closest-binary-search-tree-value-ii>) | Hard | | [solution](<markdowns/_272. Closest Binary Search Tree Value II.md>) | py |
160161
| 273 | [Integer to English Words](<https://leetcode.com/problems/integer-to-english-words>) | Hard | Daily | [solution](<markdowns/_273. Integer to English Words.md>) | py |

markdowns/Easy.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Easy Questions (178)
1+
# Easy Questions (179)
22

33
*[Back to top](<../README.md>)*
44

@@ -44,6 +44,7 @@
4444
| 226 | [Invert Binary Tree](<https://leetcode.com/problems/invert-binary-tree>) | Easy | B75, N150 | [solution](<_226. Invert Binary Tree.md>) | py | Jul 03, 2024 |
4545
| 231 | [Power of Two](<https://leetcode.com/problems/power-of-two>) | Easy | | [solution](<_231. Power of Two.md>) | py | Mar 04, 2025 |
4646
| 242 | [Valid Anagram](<https://leetcode.com/problems/valid-anagram>) | Easy | B75, N150 | [solution](<_242. Valid Anagram.md>) | c, py | Jun 13, 2024 |
47+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<_266. Palindrome Permutation.md>) | py | Mar 15, 2025 |
4748
| 292 | [Nim Game](<https://leetcode.com/problems/nim-game>) | Easy | | [solution](<_292. Nim Game.md>) | py | May 23, 2024 |
4849
| 326 | [Power of Three](<https://leetcode.com/problems/power-of-three>) | Easy | | [solution](<_326. Power of Three.md>) | py | Mar 04, 2025 |
4950
| 342 | [Power of Four](<https://leetcode.com/problems/power-of-four>) | Easy | | [solution](<_342. Power of Four.md>) | py | Mar 04, 2025 |

markdowns/Questions_By_Code_Length.md

+1
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ Calculations are based on the code files's byte sizes.
610610
| 796 | [Rotate String](<https://leetcode.com/problems/rotate-string>) | Easy | | [solution](<_796. Rotate String.md>) | py | Nov 04, 2024 |
611611
| 2894 | [Divisible and Non-divisible Sums Difference](<https://leetcode.com/problems/divisible-and-non-divisible-sums-difference>) | Easy | | [solution](<_2894. Divisible and Non-divisible Sums Difference.md>) | py | May 22, 2024 |
612612
| 619 | [Biggest Single Number](<https://leetcode.com/problems/biggest-single-number>) | Easy | | [solution](<_619. Biggest Single Number.md>) | sql | May 22, 2024 |
613+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<_266. Palindrome Permutation.md>) | py | Mar 15, 2025 |
613614
| 183 | [Customers Who Never Order](<https://leetcode.com/problems/customers-who-never-order>) | Easy | | [solution](<_183. Customers Who Never Order.md>) | sql | May 22, 2024 |
614615
| 3210 | Weekly Contest 405 - q1 - [Find the Encrypted String](<https://leetcode.com/problems/find-the-encrypted-string>) | Easy | Contest | [solution](<_3210. Find the Encrypted String.md>) | py | Jul 07, 2024 |
615616
| 181 | [Employees Earning More Than Their Managers](<https://leetcode.com/problems/employees-earning-more-than-their-managers>) | Easy | | [solution](<_181. Employees Earning More Than Their Managers.md>) | sql | May 22, 2024 |

markdowns/Questions_By_Recent.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Calculations are based on the date of the first solve.
66

77
| # | Title | Level | Cats | Solution | Languages | Date Complete |
88
|-----:|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------|:--------------------------|:----------------------------------------------------------------------------------------------------|:--------------------------------------------|:----------------|
9+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<_266. Palindrome Permutation.md>) | py | Mar 15, 2025 |
910
| 2529 | [Maximum Count of Positive Integer and Negative Integer](<https://leetcode.com/problems/maximum-count-of-positive-integer-and-negative-integer>) | Easy | Daily | [solution](<_2529. Maximum Count of Positive Integer and Negative Integer.md>) | py | Mar 12, 2025 |
1011
| 42 | [Trapping Rain Water](<https://leetcode.com/problems/trapping-rain-water>) | Hard | N150 | [solution](<_42. Trapping Rain Water.md>) | py | Mar 11, 2025 |
1112
| 2063 | [Vowels of All Substrings](<https://leetcode.com/problems/vowels-of-all-substrings>) | Medium | | [solution](<_2063. Vowels of All Substrings.md>) | py | Mar 11, 2025 |

markdowns/Topics.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
------
66

77
- [Array](<by_topic/Array.md>) (302 completed)
8-
- [String](<by_topic/String.md>) (144 completed)
9-
- [Hash Table](<by_topic/Hash Table.md>) (137 completed)
8+
- [String](<by_topic/String.md>) (145 completed)
9+
- [Hash Table](<by_topic/Hash Table.md>) (138 completed)
1010
- [Depth-First Search](<by_topic/Depth-First Search.md>) (103 completed)
1111
- [Tree](<by_topic/Tree.md>) (91 completed)
1212
- [Binary Tree](<by_topic/Binary Tree.md>) (82 completed)
@@ -21,7 +21,7 @@
2121
- [Linked List](<by_topic/Linked List.md>) (45 completed)
2222
- [Simulation](<by_topic/Simulation.md>) (42 completed)
2323
- [Design](<by_topic/Design.md>) (37 completed)
24-
- [Bit Manipulation](<by_topic/Bit Manipulation.md>) (35 completed)
24+
- [Bit Manipulation](<by_topic/Bit Manipulation.md>) (36 completed)
2525
- [Counting](<by_topic/Counting.md>) (33 completed)
2626
- [Binary Search](<by_topic/Binary Search.md>) (31 completed)
2727
- [Backtracking](<by_topic/Backtracking.md>) (27 completed)

markdowns/Weekly_Questions.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Dates are for the date I completed the question so due to the my time zone and h
66

77
| # | Title | Level | Cats | Solution | Languages | Date Complete |
88
|-----:|:---------------------------------------------------------------------------------------------------------------------------------------------|:--------|:--------------------------|:-----------------------------------------------------------------------------|:------------|:----------------|
9+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<_266. Palindrome Permutation.md>) | py | Mar 15, 2025 |
910
| 1100 | [Find K-Length Substrings With No Repeated Characters](<https://leetcode.com/problems/find-k-length-substrings-with-no-repeated-characters>) | Medium | Weekly Premium | [solution](<_1100. Find K-Length Substrings With No Repeated Characters.md>) | py | Mar 08, 2025 |
1011
| 1151 | [Minimum Swaps to Group All 1's Together](<https://leetcode.com/problems/minimum-swaps-to-group-all-1s-together>) | Medium | Weekly Premium | [solution](<_1151. Minimum Swaps to Group All 1's Together.md>) | py | Mar 01, 2025 |
1112
| 487 | [Max Consecutive Ones II](<https://leetcode.com/problems/max-consecutive-ones-ii>) | Medium | Weekly Premium | [solution](<_487. Max Consecutive Ones II.md>) | py | Feb 22, 2025 |
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 266. [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>)
2+
3+
*All prompts are owned by LeetCode. To view the prompt, click the title link above.*
4+
5+
*[Back to top](<../README.md>)*
6+
7+
------
8+
9+
> *First completed : March 15, 2025*
10+
>
11+
> *Last updated : March 15, 2025*
12+
13+
------
14+
15+
> **Related Topics** : **[Hash Table](<by_topic/Hash Table.md>), [String](<by_topic/String.md>), [Bit Manipulation](<by_topic/Bit Manipulation.md>)**
16+
>
17+
> **Acceptance Rate** : **68.08 %**
18+
19+
------
20+
21+
## Solutions
22+
23+
- [e266.py](<../my-submissions/e266.py>)
24+
### Python
25+
#### [e266.py](<../my-submissions/e266.py>)
26+
```Python
27+
class Solution:
28+
def canPermutePalindrome(self, s: str) -> bool:
29+
return sum(x % 2 for x in Counter(s).values()) <= 1
30+
```
31+

markdowns/by_topic/Bit Manipulation.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Bit Manipulation](<https://leetcode.com/tag/Bit-Manipulation/>) (35 completed)
1+
# [Bit Manipulation](<https://leetcode.com/tag/Bit-Manipulation/>) (36 completed)
22

33
*[Back to top](<../../README.md>)*
44

@@ -12,6 +12,7 @@
1212
| 191 | [Number of 1 Bits](<https://leetcode.com/problems/number-of-1-bits>) | Easy | B75, N150 | [solution](<../_191. Number of 1 Bits.md>) | py | Jul 03, 2024 |
1313
| 231 | [Power of Two](<https://leetcode.com/problems/power-of-two>) | Easy | | [solution](<../_231. Power of Two.md>) | py | Mar 04, 2025 |
1414
| 260 | [Single Number III](<https://leetcode.com/problems/single-number-iii>) | Medium | | [solution](<../_260. Single Number III.md>) | py | Jun 08, 2024 |
15+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<../_266. Palindrome Permutation.md>) | py | Mar 15, 2025 |
1516
| 287 | [Find the Duplicate Number](<https://leetcode.com/problems/find-the-duplicate-number>) | Medium | N150 | [solution](<../_287. Find the Duplicate Number.md>) | c | Jun 26, 2024 |
1617
| 320 | [Generalized Abbreviation](<https://leetcode.com/problems/generalized-abbreviation>) | Medium | Weekly Premium | [solution](<../_320. Generalized Abbreviation.md>) | py | Aug 22, 2024 |
1718
| 342 | [Power of Four](<https://leetcode.com/problems/power-of-four>) | Easy | | [solution](<../_342. Power of Four.md>) | py | Mar 04, 2025 |

markdowns/by_topic/Hash Table.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Hash Table](<https://leetcode.com/tag/Hash-Table/>) (137 completed)
1+
# [Hash Table](<https://leetcode.com/tag/Hash-Table/>) (138 completed)
22

33
*[Back to top](<../../README.md>)*
44

@@ -21,6 +21,7 @@
2121
| 208 | [Implement Trie (Prefix Tree)](<https://leetcode.com/problems/implement-trie-prefix-tree>) | Medium | B75, N150 | [solution](<../_208. Implement Trie (Prefix Tree).md>) | py | Jun 27, 2024 |
2222
| 217 | [Contains Duplicate](<https://leetcode.com/problems/contains-duplicate>) | Easy | B75, N150 | [solution](<../_217. Contains Duplicate.md>) | py | Jun 12, 2024 |
2323
| 242 | [Valid Anagram](<https://leetcode.com/problems/valid-anagram>) | Easy | B75, N150 | [solution](<../_242. Valid Anagram.md>) | c, py | Jun 13, 2024 |
24+
| 266 | [Palindrome Permutation](<https://leetcode.com/problems/palindrome-permutation>) | Easy | Weekly Premium | [solution](<../_266. Palindrome Permutation.md>) | py | Mar 15, 2025 |
2425
| 314 | [Binary Tree Vertical Order Traversal](<https://leetcode.com/problems/binary-tree-vertical-order-traversal>) | Medium | | [solution](<../_314. Binary Tree Vertical Order Traversal.md>) | py | Jun 12, 2024 |
2526
| 347 | [Top K Frequent Elements](<https://leetcode.com/problems/top-k-frequent-elements>) | Medium | B75, N150 | [solution](<../_347. Top K Frequent Elements.md>) | py | Jun 13, 2024 |
2627
| 348 | [Design Tic-Tac-Toe](<https://leetcode.com/problems/design-tic-tac-toe>) | Medium | | [solution](<../_348. Design Tic-Tac-Toe.md>) | py | Jul 05, 2024 |

0 commit comments

Comments
 (0)