Skip to content

Repo for storing my progress in solving LeetCode programming problems

Notifications You must be signed in to change notification settings

murilogustineli/leetcode

Repository files navigation

LeetCode

Repo for storing my progress in solving LeetCode programming problems.

leetcode-banner

Quickstart

Install the pre-commit hooks for formatting code:

pre-commit install

Install packages to the .venv:

sudo pip install -r requirements.txt

Install the package in "editable" mode, which means changes to the Python files will be immediately available without needing to reinstall the package.

pip install -e .

Easy problems

Programming Solution LeetCode link
01. Two Sum two-sum
09. Padindrome Number palindrome-number
13. Roman to Integer roman-to-integer
14. Longest Common Prefix longest-common-prefix
20. Valid Parentheses valid-parentheses
26. Remove Duplicates From Sorted Array remove-duplicates-from-sorted-array
27. Remove Element remove-element
28. Implement strStr() implement-strStr()
35. Search Insert Position search-insert-position
53. Maximum Subarray maximum-subarray
58. Lenght of Last Word lenght-of-last-word
66. Plus One plus-one
67. Add Binary add-binary
69. Sqrt(x) sqrt(x)
70. Climbing Stairs climbing-stairs
118. Pascals Triangle pascals-triangle
119. Pascals Triangle II pascals-triangle-II
121. Best Time to Buy and Sell Stock best-time-to-buy-and-sell-stock
125. Valid Palindrome valid-palindrome
136. Single Number single-number
168. Excel Sheet Column Title excel-sheet-column-title
169. Majority Element majority-element
171. Excel Sheet Column Number excel-sheet-column-number
202. Happy Number happy-number
217. Contains Duplicate contains-duplicate
228. Summary Ranges summary-ranges
258. Add Digits add-digits
268. Missing Number missing-number
303. Range Sum Query range-sum-query
338. Counting Bits counting-bits
448. Find All Numbers Disappeared in Array find-all-numbers-disappeared-in-array
704. Binary Search binary-search
744. Find Smallest Letter Greater Than Target find-smallest-letter-greater-than-target
844. Backspace String Compare backspace-string-compare
852. Peak Index in a Mountain Array peak-index-in-a-mountain-array
977. Squares of a Sorted Array squares-of-a-sorted-array
1886. Determine Whether Matrix Can Be Obtained By Rotation determine-whether-matrix-can-be-obtained-by-rotation
1929. Concatenation of Array concatenation-of-array
2022. Convert 1D Array Into 2D Array convert-1d-array-into-2d-array

Medium problems

Programming Solution LeetCode link
02. Add Two Numbers add-two-numbers
03. Longest Substring Without Repeating Characters longest-substring-without-repeating-characters
07. Reverse Integer reverse-integer
48. Rotate Image rotate-image
54. Spiral Matrix spiral-matrix
73. Set Matrix Zeroes set-matrix-zeroes
128. Longest Consecutive Sequence longest-consecutive-sequence
238. Product of Array Except Self product-of-array-except-self
287. Find the Duplicate Number find-the-duplicate-number
378. Kth Smallest Element in a Sorted Matrix kth-smallest-element-in-a-sorted-matrix
442. Find All Duplicates in an Array find-all-duplicates-in-an-array
1476. Subrectangle Queries subrectangle-queries

Hard problems

Programming Solution LeetCode link
410. Split Array Largest Sum split-array-largest-sum

About

Repo for storing my progress in solving LeetCode programming problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages