-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (77 loc) · 5.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LeetCode Solutions</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
max-width: 900px;
margin: auto;
padding: 20px;
}
h1, h2, h3 {
color: #333;
}
ul {
list-style-type: none;
padding: 0;
}
ul li {
margin: 10px 0;
padding: 10px;
border: 1px solid #ddd;
background-color: #f9f9f9;
border-radius: 5px;
}
a {
color: #3498db;
text-decoration: none;
}
</style>
</head>
<body>
<h1>LeetCode Solutions</h1>
<p><a href="https://wakatime.com/badge/github/Mo-Shakib/LeetCode"><img src="https://wakatime.com/badge/github/Mo-Shakib/LeetCode.svg" alt="wakatime" /></a> <img src="https://github.com/Mo-Shakib/LeetCode/actions/workflows/Readme-automation.yml/badge.svg" alt="Gihtub workflow" /></p>
<p><a href="https://leetcode.com/Mo-Shakib"><img src="https://leetcode.card.workers.dev/Mo-Shakib?theme=dark&font=baloo&extension=null&border=0.2"></a></p>
<p>Welcome to my repository of LeetCode solutions! This collection includes my answers to various LeetCode problems, organized by difficulty. Each solution is written in Python. Hit the STAR to support this repo, thank you!</p>
<h3>Repository Structure</h3>
<p><strong>The repository is organized into three main folders based on difficulty:</strong></p>
<p><code>
LeetCode/
├── easy/
├── medium/
|── hard/
|── src/
└-- README.md
</code></p>
<h2>Easy</h2>
<p>| ID | Title | Solution |
|----|------------------------------------|----------|
| 202 | <a href="https://leetcode.com/problems/happy-number/description/">Happy Number</a> | <a href="src/202-happy-number.md">Python</a> |
| 1480 | <a href="https://leetcode.com/problems/running-sum-of-1d-array/description/">Running Sum of 1d Array</a> | <a href="src/1480-running-sum-of-1-d-array.md">Python</a> |
| 344 | <a href="https://leetcode.com/problems/reverse-string/description/">Reverse String</a> | <a href="src/344-reverse-string.md">Python</a> |
| 20 | <a href="https://leetcode.com/problems/valid-parentheses/description/">Valid Parentheses</a> | <a href="src/20-valid-parentheses.md">Python</a> |
| 242 | <a href="https://leetcode.com/problems/valid-anagram/description/">Valid Anagram</a> | <a href="src/242-valid-anagram.md">Python</a> |
| 392 | <a href="https://leetcode.com/problems/is-subsequence/description/">Is Subsequence</a> | <a href="src/392-is-subsequence.md">Python</a> |
| 13 | <a href="https://leetcode.com/problems/roman-to-integer/description/">Roman to Integer</a> | <a href="src/13-roman-to-integer.md">Python</a> |
| 1491 | <a href="https://leetcode.com/problems/average-salary-excluding-the-minimum-and-maximum-salary/description/">Average Salary Excluding the Minimum and Maximum Salary</a> | <a href="src/1491-average-salary-excluding-the-minimum-and-maximum-salary.md">Python</a> |
| 1768 | <a href="https://leetcode.com/problems/merge-strings-alternately/description/">Merge Strings Alternately</a> | <a href="src/1768-merge-strings-alternately.md">Python</a> |
| 14 | <a href="https://leetcode.com/problems/longest-common-prefix/description/">Longest Common Prefix</a> | <a href="src/14-longest-common-prefix.md">Python</a> |
| 643 | <a href="https://leetcode.com/problems/maximum-average-subarray-i/description/">Maximum Average Subarray I</a> | <a href="src/643-maximum-average-subarray-i.md">Python</a> |
| 2239 | <a href="https://leetcode.com/problems/find-closest-number-to-zero/description/">Find Closest Number to Zero</a> | <a href="src/2239-find-closest-number-to-zero.md">Python</a> |
| 1342 | <a href="https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/description/">Number of Steps to Reduce a Number to Zero</a> | <a href="src/1342-number-of-steps-to-reduce-a-number-to-zero.md">Python</a> |
| 169 | <a href="https://leetcode.com/problems/majority-element/description/">Majority Element</a> | <a href="src/169-majority-element.md">Python</a> |
| 908 | <a href="https://leetcode.com/problems/smallest-range-i/description/">Smallest Range I</a> | <a href="src/908-smallest-range-i.md">Python</a> |
| 231 | <a href="https://leetcode.com/problems/power-of-two/description/">Power of Two</a> | <a href="src/231-power-of-two.md">Python</a> |</p>
<h2>Medium</h2>
<p>| ID | Title | Solution |
|----|------------------------------------|----------|
| 347 | <a href="https://leetcode.com/problems/top-k-frequent-elements/description/">Top K Frequent Elements</a> | <a href="src/347-top-k-frequent-elements.md">Python</a> |
| 633 | <a href="https://leetcode.com/problems/sum-of-square-numbers/description/">Sum of Square Numbers</a> | <a href="src/633-sum-of-square-numbers.md">Python</a> |</p>
</body>
</html>