Skip to content

milosz275/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

293 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

CodeQL Docs

This is a repository for my solutions to Leetcode problems written in C, C++, Python and SQL. Leetcode profile: mlsh

75

# Title Difficulty Langs Docs Passed
1 Merge Strings Alternately Easy C Doxygen ✔️
2 Greatest Common Divisor of Strings Easy C Doxygen ✔️
3 Kids With the Greatest Number of Candies Easy C Doxygen ✔️
4 Reverse Words in a String Medium C Doxygen ✔️
5 Move Zeroes Easy C++ Doxygen ✔️
6 Is Subsequence Medium C Doxygen ✔️
7 Container With Most Water Medium C Doxygen ✔️
8 Find Pivot Index Easy C++ Doxygen ✔️
9 Unique Number of Occurrences Easy C++ Doxygen ✔️
10 Removing Stars From a String Easy C++ Doxygen ✔️
11 Decode String Medium C++ Doxygen ✔️
12 Number of Recent Calls Easy C++ Doxygen ✔️
13 Delete the Middle Node of a Linked List Medium C++ Doxygen ✔️
14 Odd Even Linked List Medium C++ Doxygen ✔️
15 Reverse Linked List Easy C++ Doxygen ✔️
16 Maximum Level Sum of a Binary Tree Medium C++ Doxygen ✔️
17 Kth Largest Element in an Array Medium C++ Doxygen ✔️
18 Guess Number Higher or Lower Easy C++ Doxygen ✔️
19 N-th Tribonacci Number Easy C++ Doxygen ✔️
20 Longest Common Subsequence Medium C++ Doxygen ✔️
21 Counting Bits Easy C++ Doxygen ✔️
22 Daily Temperatures Medium C++ Doxygen ✔️

SQL 50

# Title Difficulty Langs Docs Passed
1 Recyclable and Low Fat Products Easy SQL ✔️
2 Find Customer Referee Easy SQL ✔️

All Problems

# Title Difficulty Langs Docs Passed
1 Count of Range Sum Hard C++ Doxygen ✔️
2 Subarray Product Less Than K Medium C Doxygen ✔️
3 Reverse Integer Medium C Doxygen ✔️
4 Merge Strings Alternately Easy C Doxygen ✔️
5 Greatest Common Divisor of Strings Easy C Doxygen ✔️
6 All Ancestors of a Node in a Directed Acyclic Graph Medium C++ Doxygen ✔️
7 Kids With the Greatest Number of Candies Easy C Doxygen ✔️
8 Reverse Words in a String Medium C Doxygen ✔️
9 Intersection of Two Arrays II Easy C Doxygen ✔️
10 Water Bottles Easy C Doxygen ✔️
11 Wildcard Matching Hard C Doxygen ✔️
12 Maximum Level Sum of a Binary Tree Medium C++ Doxygen ✔️
13 Maximum Number of Integers to Choose From a Range I Medium C++ Doxygen ✔️
14 Remove Duplicates from Sorted Array II Medium C++ Doxygen ✔️
15 Integer to Roman Medium C++ Doxygen ✔️
16 Valid Palindrome Easy C++ Doxygen ✔️
17 Reverse Linked List Easy C++ Doxygen ✔️
18 Basic Calculator Hard C++ Doxygen ✔️
19 Valid Anagram Easy C++ Doxygen ✔️
20 Sort List Medium C++ Doxygen ✔️
21 Palindrome Linked List Easy C++ Doxygen ✔️
22 Linked List Random Node Medium C++ Doxygen ✔️
23 H-Index Medium C++ Doxygen ✔️
24 Container With Most Water Medium C++ Doxygen ✔️
25 Two Sum Medium C++ Doxygen ✔️
26 3Sum Medium C++ Doxygen ✔️
27 Best Time to Buy and Sell Stock Easy C++ Doxygen ✔️
28 Binary Tree Preorder Traversal Easy C++ Doxygen ✔️
29 Climbing Stairs Easy C++ Doxygen ✔️
30 Binary Tree Level Order Traversal Medium C++ Doxygen ✔️
31 Binary Tree Inorder Traversal Easy C++ Doxygen ✔️
32 Binary Tree Postorder Traversal Easy C++ Doxygen ✔️
33 Binary Search Tree Iterator Medium C++ Doxygen ✔️
34 Validate Binary Search Tree Medium C++ Doxygen ✔️
35 Trapping Rain Water Hard C++ Doxygen ✔️
36 Word Break Medium C++ Doxygen ✔️
37 Sum of Digits of String After Convert Easy C++ Doxygen ✔️
38 Best Time to Buy and Sell Stock II Medium C++ Doxygen ✔️
39 Design HashMap Easy C++ Doxygen ✔️
40 Add Sum of Digits in Base K Easy C++ Doxygen ✔️
41 Add digits Easy C++ Doxygen ✔️
42 Continuous Subarrays Medium C++ Doxygen ✔️
43 Find Median from Data Stream Hard C++ Doxygen ✔️
44 Minimum Size Subarray Sum Medium C++ Doxygen ✔️
45 Rotate Image Medium C++ Doxygen ✔️
46 Spiral Matrix Medium C++ Doxygen ✔️
47 Spiral Matrix II Medium C++ Doxygen ✔️
48 Counting Words With a Given Prefix Easy C++ Doxygen ✔️
49 Circular Array Loop Medium C++ Doxygen ✔️
50 Number of Recent Calls Easy C++ Doxygen ✔️
51 Clone Graph Medium C++ Doxygen ✔️
52 Decode String Medium C++ Doxygen ✔️
53 Counting Bits Easy C++ Doxygen ✔️
54 Course Schedule Medium C++ Doxygen ✔️
55 Daily Temperatures Medium C++ Doxygen ✔️
56 First Letter to Appear Twice Easy C++ Doxygen ✔️
57 Guess Number Higher or Lower Easy C++ Doxygen ✔️
58 Linked List Cycle Easy C++ Doxygen ✔️
59 Longest Common Subsequence Medium C++ Doxygen ✔️
60 Merge Two Sorted Lists Easy C++ Doxygen ✔️
61 N-th Tribonacci Number Easy C++ Doxygen ✔️
62 Search in Rotated Sorted Array Medium C++ Doxygen ✔️
63 Unique Number of Occurrences Easy C++ Doxygen ✔️
64 Word Subsets Medium C++ Doxygen ✔️
65 Find the Prefix Common Array of Two Arrays Medium C++ Doxygen ✔️
66 Odd Even Linked List Medium C++ Doxygen ✔️
67 Delete the Middle Node of a Linked List Medium C++ Doxygen ✔️
68 Merge k Sorted Lists Hard C++ Doxygen ✔️
69 Group Anagrams Medium C++ Doxygen ✔️
70 Kth Largest Element in an Array Medium C++ Doxygen ✔️
71 Minimize XOR Medium C++ Doxygen ✔️
72 Valid Parentheses Easy C++ Doxygen ✔️
73 Remove Nth Node From End of List Medium C++ Doxygen ✔️
74 Simplified Fractions Medium C++ Doxygen ✔️
75 Top K Frequent Elements Medium C++ Doxygen ✔️
76 Minimum Cost to Make at Least One Valid Path in a Grid Hard C++ Doxygen ✔️
77 Invert Binary Tree Easy C++ Doxygen ✔️
78 Encode and Decode String Medium C++ Doxygen ✔️
79 Contains Duplicate Easy C++ Doxygen ✔️
80 Find Minimum in Rotated Sorted Array Medium C++ Doxygen ✔️
81 First Completely Painted Row or Column Medium C++ Doxygen ✔️
82 Grid Game Medium C++ Doxygen ✔️
83 Map of Highest Peak Medium C++ Doxygen ✔️
84 Move Zeroes Easy C++ Doxygen ✔️
85 Count Servers that Communicate Medium C++ Doxygen ✔️
86 Find Eventual Safe States Medium C++ Doxygen ✔️
87 Make Lexicographically Smallest Array by Swapping Elements Medium C++ Doxygen ✔️
88 Course Schedule IV Medium C++ Doxygen ✔️
89 Binary Search Easy C++ Doxygen ✔️
90 Maximum Count of Positive Integer and Negative Integer Easy C++ Doxygen ✔️
91 Maximum Ascending Subarray Sum Easy C++ Doxygen ✔️
92 Removing Stars From a String Easy C++ Doxygen ✔️
93 Check if One String Swap Can Make Strings Equal Easy C++ Doxygen ✔️
94 Tuple with Same Product Medium C++ Doxygen ✔️
95 Find the Number of Distinct Colors Among the Balls Medium C++ Doxygen ✔️
96 Design a Number Container System Medium C++ Doxygen ✔️
97 Is Subsequence Medium C Doxygen ✔️
98 Reorder List Medium C++ Doxygen ✔️
99 The k-th Lexicographical String of All Happy Strings of Length n Medium C++ Doxygen ✔️
100 Nearest Exit from Entrance in Maze Medium C++ Doxygen ✔️
101 Find Unique Binary String Medium C++ Doxygen ✔️
102 Maximum Depth of Binary Tree Easy C++ Doxygen ✔️
103 Find Elements in a Contaminated Binary Tree Medium C++ Doxygen ✔️
104 Same Tree Easy C++ Doxygen ✔️
105 Recover a Tree From Preorder Traversal Hard C++ Doxygen ✔️
106 Maximum Subarray Medium C++ Doxygen ✔️
107 Maximum Absolute Sum of Any Subarray Medium C++ Doxygen ✔️
108 Graph Valid Tree Medium C++ Doxygen ✔️
109 Merge Two 2D Arrays by Summing Values Easy C++ Doxygen ✔️
110 Min Stack Medium C++ Doxygen ✔️
111 Lowest Common Ancestor of a Binary Search Tree Medium C++ Doxygen ✔️
112 Implement Trie (Prefix Tree) Medium C++ Doxygen ✔️
113 Reverse Nodes in k-Group Hard C++ Doxygen ✔️
114 Partition Array According to Given Pivot Medium C++ Doxygen ✔️
115 Check if Number is a Sum of Powers of Three Medium C++ Doxygen ✔️
116 Count Total Number of Colored Cells Medium C++ Doxygen ✔️
117 Find Missing and Repeated Values Easy C++ Doxygen ✔️
118 Search a 2D Matrix Medium C Doxygen ✔️
119 Lowest Common Ancestor of Deepest Leaves Medium C++ Doxygen ✔️
120 Type of Triangle Easy Python MkDocs ✔️
121 Find the Index of the First Occurrence in a String Easy Python MkDocs ✔️

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Repository for my solutions to Leetcode problems. Each task is documented and docs are automatically deployed.

Topics

Resources

License

Stars

Watchers

Forks

Contributors