Skip to content

lry12138/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 

Repository files navigation

My leetcode solution repository

Hashing

1. Two Sum
169. Majority Element
217. Contains Duplicate
268. Missing Number
383. Ransom Note
451. Sort Characters By Frequency
771. Jewels and Stones
1133. Largest Unique Number
1189. Maximum Number of Balloons
1207. Unique Number of Occurrences
1394. Find Lucky Integer in an Array
1426. Counting Elements
1436. Destination City
1496. Path Crossing
1512. Number of Good Pairs
1748. Sum of Unique Elements
1832. Check if the Sentence Is Pangram
2225. Find Players With Zero or One Losses

Arrays and Strings

Two Pointer

118. Pascal's Triangle
125. Valid Palindrome
283. Move Zeroes
344. Reverse String
557. Reverse Words in a String III
917. Reverse Only Letters
977. Squares of a Sorted Array 2000. Reverse Prefix of Word

Sliding Window

121. Best Time to Buy and Sell Stock
643. Maximum Average Subarray I
1004. Max Consecutive Ones III
1208. Get Equal Substrings Within Budget
1456. Maximum Number of Vowels in a Substring of Given Length

Prefix Sum

303. Range Sum Query - Immutable
724. Find Pivot Index
1413. Minimum Value to Get Positive Step by Step Sum
1480. Running Sum of 1d Array
1732. Find the Highest Altitude

Binary Trees

DFS

100. Same Tree
111. Minimum Depth of Binary Tree
226. Invert Binary Tree
872. Leaf-Similar Trees
1325. Delete Leaves With a Given Value

BFS

102. Binary Tree Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
637. Average of Levels in Binary Tree
1161. Maximum Level Sum of a Binary Tree 1302. Deepest Leaves Sum
1609. Even Odd Tree

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages