Skip to content

This repository stores the solutions for problems posted on LeetCode

License

Notifications You must be signed in to change notification settings

jingye-xu/TeemoCoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeemoCoding

This repository stores the solutions for problems posted on Leetcode.

Profile: link

Progress:

Category Solved
All 267/2577
Easy 132/630
Medium 118/1372
Hard 17/575

Table of Contents

1. Two Sum

3. Longest Substring Without Repeating Characters

5. Longest Palindromic Substring

6. Zigzag Conversion

12. Integer to Roman

19. Remove Nth Node From End of List

20. Valid Parentheses

21. Merge Two Sorted Lists

23. Merge k Sorted Lists

26. Remove Duplicates from Sorted Array

28. Find the Index of the First Occurrence in a String

33. Search in Rotated Sorted Array

34. Find First and Last Position of Element in Sorted Array

35. Search Insert Position

36. Valid Sudoku

38. Count and Say

42. Trapping Rain Water

45. Jump Game II

46. Permutations

49. Group Anagrams

53. Maximum Subarray

55. Jump Game

57. Insert Interval

62. Unique Paths

63. Unique Paths II

64. Minimum Path Sum

67. Add Binary

69. Sqrt(x)

70. Climbing Stairs

72. Edit Distance

74. Search a 2D Matrix

76. Minimum Window Substring

77. Combinations

83. Remove Duplicates from Sorted List

88. Merge Sorted Array

91. Decode Ways

93. Restore IP Addresses

94. Binary Tree Inorder Traversal

96. Unique Binary Search Trees

98. Validate Binary Search Tree

100. Same Tree

101. Symmetric Tree

102. Binary Tree Level Order Traversal

103. Binary Tree Zigzag Level Order Traversal

104. Maximum Depth of Binary Tree

106. Construct Binary Tree from Inorder and Postorder Traversal

109. Convert Sorted List to Binary Search Tree

111. Minimum Depth of Binary Tree

112. Path Sum

116. Populating Next Right Pointers in Each Node

118. Pascal's Triangle

119. Pascal's Triangle II

120. Triangle

121. Best Time to Buy and Sell Stock

122. Best Time to Buy and Sell Stock II

125. Valid Palindrome

129. Sum Root to Leaf Numbers

131. Palindrome Partitioning

134. Gas Station

136. Single Number

139. Word Break

141. Linked List Cycle

142. Linked List Cycle II

144. Binary Tree Preorder Traversal

145. Binary Tree Postorder Traversal

149. Max Points on a Line

152. Maximum Product Subarray

153. Find Minimum in Rotated Sorted Array

167. Two Sum II - Input Array Is Sorted

168. Excel Sheet Column Title

171. Excel Sheet Column Number

189. Rotate Array

190. Reverse Bits

191. Number of 1 Bits

198. House Robber

200. Number of Islands

202. Happy Number

203. Remove Linked List Elements

206. Reverse Linked List

213. House Robber II

217. Contains Duplicate

219. Contains Duplicate II

221. Maximal Square

222. Count Complete Tree Nodes

223. Rectangle Area

224. Basic Calculator

226. Invert Binary Tree

231. Power of Two

232. Implement Queue using Stacks

235. Lowest Common Ancestor of a Binary Search Tree

242. Valid Anagram

263. Ugly Number

264. Ugly Number II

278. First Bad Version

279. Perfect Squares

283. Move Zeroes

290. Word Pattern

299. Bulls and Cows

300. Longest Increasing Subsequence

303. Range Sum Query - Immutable

304. Range Sum Query 2D - Immutable

309. Best Time to Buy and Sell Stock with Cooldown

322. Coin Change

344. Reverse String

345. Reverse Vowels of a String

350. Intersection of Two Arrays II

352. Data Stream as Disjoint Intervals

367. Valid Perfect Square

374. Guess Number Higher or Lower

376. Wiggle Subsequence

382. Linked List Random Node

383. Ransom Note

387. First Unique Character in a String

389. Find the Difference

392. Is Subsequence

394. Decode String

404. Sum of Left Leaves

413. Arithmetic Slices

424. Longest Repeating Character Replacement

427. Construct Quad Tree

433. Minimum Genetic Mutation

438. Find All Anagrams in a String

441. Arranging Coins

443. String Compression

452. Minimum Number of Arrows to Burst Balloons

462. Minimum Moves to Equal Array Elements II

496. Next Greater Element I

502. IPO

509. Fibonacci Number

516. Longest Palindromic Subsequence

518. Coin Change II

520. Detect Capital

523. Continuous Subarray Sum

540. Single Element in a Sorted Array

542. 01 Matrix

543. Diameter of Binary Tree

557. Reverse Words in a String III

566. Reshape the Matrix

567. Permutation in String

587. Erect the Fence

589. N-ary Tree Preorder Traversal

605. Can Place Flowers

617. Merge Two Binary Trees

633. Sum of Square Numbers

645. Set Mismatch

652. Find Duplicate Subtrees

653. Two Sum IV - Input is a BST

692. Top K Frequent Words

693. Binary Number with Alternating Bits

695. Max Area of Island

700. Search in a Binary Search Tree

701. Insert into a Binary Search Tree

704. Binary Search

709. To Lower Case

714. Best Time to Buy and Sell Stock with Transaction Fee

733. Flood Fill

740. Delete and Earn

744. Find Smallest Letter Greater Than Target

746. Min Cost Climbing Stairs

766. Toeplitz Matrix

783. Minimum Distance Between BST Nodes

784. Letter Case Permutation

787. Cheapest Flights Within K Stops

835. Image Overlap

844. Backspace String Compare

852. Peak Index in a Mountain Array

875. Koko Eating Bananas

876. Middle of the Linked List

904. Fruit Into Baskets

909. Snakes and Ladders

912. Sort an Array

918. Maximum Sum Circular Subarray

926. Flip String to Monotone Increasing

931. Minimum Falling Path Sum

944. Delete Columns to Make Sorted

953. Verifying an Alien Dictionary

958. Check Completeness of a Binary Tree

974. Subarray Sums Divisible by K

976. Largest Perimeter Triangle

977. Squares of a Sorted Array

989. Add to Array-Form of Integer

994. Rotting Oranges

997. Find the Town Judge

1011. Capacity To Ship Packages Within D Days

1014. Best Sightseeing Pair

1046. Last Stone Weight

1047. Remove All Adjacent Duplicates In String

1071. Greatest Common Divisor of Strings

1129. Shortest Path with Alternating Colors

1137. N-th Tribonacci Number

1143. Longest Common Subsequence

1162. As Far from Land as Possible

1232. Check If It Is a Straight Line

1239. Maximum Length of a Concatenated String with Unique Characters

1281. Subtract the Product and Sum of Digits of an Integer

1290. Convert Binary Number in a Linked List to Integer

1293. Shortest Path in a Grid with Obstacles Elimination

1309. Decrypt String from Alphabet to Integer Mapping

1314. Matrix Block Sum

1323. Maximum 69 Number

1337. The K Weakest Rows in a Matrix

1345. Jump Game IV

1346. Check If N and Its Double Exist

1351. Count Negative Numbers in a Sorted Matrix

1356. Sort Integers by The Number of 1 Bits

1385. Find the Distance Value Between Two Arrays

1402. Reducing Dishes

1466. Reorder Routes to Make All Paths Lead to the City Zero

1470. Shuffle the Array

1472. Design Browser History

1491. Average Salary Excluding the Minimum and Maximum Salary

1502. Can Make Arithmetic Progression From Sequence

1523. Count Odd Numbers in an Interval Range

1539. Kth Missing Positive Number

1544. Make The String Great

1567. Maximum Length of Subarray With Positive Product

1572. Matrix Diagonal Sum

1588. Sum of All Odd Length Subarrays

1603. Design Parking System

1608. Special Array With X Elements Greater Than or Equal X

1657. Determine if Two Strings Are Close

1662. Check If Two String Arrays are Equivalent

1672. Richest Customer Wealth

1675. Minimize Deviation in Array

1678. Goal Parser Interpretation

1704. Determine if String Halves Are Alike

1706. Where Will the Ball Fall

1768. Merge Strings Alternately

1779. Find Nearest Point That Has the Same X or Y Coordinate

1790. Check if One String Swap Can Make Strings Equal

1822. Sign of the Product of an Array

1832. Check if the Sentence Is Pangram

1833. Maximum Ice Cream Bars

1855. Maximum Distance Between a Pair of Values

2114. Maximum Number of Words Found in Sentences

2131. Longest Palindrome by Concatenating Two Letter Words

2136. Earliest Possible Day of Full Bloom

2187. Minimum Time to Complete Trips

2244. Minimum Rounds to Complete All Tasks

2306. Naming a Company

2316. Count Unreachable Pairs of Nodes in an Undirected Graph

2348. Number of Zero-Filled Subarrays

2359. Find Closest Node to Given Two Nodes

2444. Count Subarrays With Fixed Bounds

2477. Minimum Fuel Cost to Report to the Capital

2492. Minimum Score of a Path Between Two Cities

About

This repository stores the solutions for problems posted on LeetCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published