Skip to content

Rejwan321/leetspace

 
 

Repository files navigation

LeetSpace

LeetSpace serves as a dedicated workspace and archive for my LeetCode submissions.

Problems

Problem Difficulty Solution
1. Two Sum Easy C C++
3. Longest Substring Without Repeating Characters Medium C++
4. Median of Two Sorted Arrays Hard C++
5. Longest Palindromic Substring Medium C C++
6. Zigzag Conversion Medium C C++
8. String to Integer (atoi) Medium C++
9. Palindrome Number Easy C++
10. Regular Expression Matching Hard C C++
11. Container With Most Water Medium C++
15. 3Sum Medium C++
16. 3Sum Closest Medium C C++
17. Letter Combinations of a Phone Number Medium C++
19. Remove Nth Node From End of List Medium C++
23. Merge k Sorted Lists Hard C++
24. Swap Nodes in Pairs Medium C++
25. Reverse Nodes in k-Group Hard C++
26. Remove Duplicates from Sorted Array Easy C++
27. Remove Element Easy C++
28. Find the Index of the First Occurrence in a String Easy C++
34. Find First and Last Position of Element in Sorted Array Medium C++
35. Search Insert Position Easy C++
36. Valid Sudoku Medium C C++
41. First Missing Positive Hard C C++
49. Group Anagrams Medium C++
57. Insert Interval Medium C C++
58. Length of Last Word Easy C C++
66. Plus One Easy C++
67. Add Binary Easy C C++
70. Climbing Stairs Easy C C++
75. Sort Colors Medium C++
78. Subsets Medium C++
79. Word Search Medium C C++
88. Merge Sorted Array Easy C++
91. Decode Ways Medium C C++
94. Binary Tree Inorder Traversal Easy C++
100. Same Tree Easy C++
119. Pascal's Triangle II Easy C++
129. Sum Root to Leaf Numbers Medium C++
131. Palindrome Partitioning Medium C++
140. Word Break II Hard C++
141. Linked List Cycle Easy C++
143. Reorder List Medium C++
150. Evaluate Reverse Polish Notation Medium C C++
151. Reverse Words in a String Medium C C++
165. Compare Version Numbers Medium C C++
169. Majority Element Easy C C++
191. Number of 1 Bits Easy C C++
198. House Robber Medium C C++
200. Number of Islands Medium C C++
201. Bitwise AND of Numbers Range Medium C C++
205. Isomorphic Strings Easy C C++
206. Reverse Linked List Easy C++
229. Majority Element II Medium C++
231. Power of Two Easy C C++
232. Implement Queue using Stacks Easy C++
234. Palindrome Linked List Easy C++
237. Delete Node in a Linked List Medium C++
238. Product of Array Except Self Medium C C++
242. Valid Anagram Easy C C++
258. Add Digits Easy C++
260. Single Number III Medium C C++
263. Ugly Number Easy C C++
268. Missing Number Easy C C++
275. H-Index II Medium C C++
279. Perfect Squares Medium C C++
287. Find the Duplicate Number Medium C C++
300. Longest Increasing Subsequence Medium C C++
303. Range Sum Query - Immutable Easy C++
310. Minimum Height Trees Medium C C++
316. Remove Duplicate Letters Medium C++
330. Patching Array Hard C++
342. Power of Four Easy C C++
343. Integer Break Medium C++
344. Reverse String Easy C++
349. Intersection of Two Arrays Easy C C++
355. Design Twitter Medium C++
368. Largest Divisible Subset Medium C++
380. Insert Delete GetRandom O(1) Medium C++
387. First Unique Character in a String Easy C C++
389. Find the Difference Easy C++
392. Is Subsequence Easy C++
404. Sum of Left Leaves Easy C++
409. Longest Palindrome Easy C C++
442. Find All Duplicates in an Array Medium C C++
446. Arithmetic Slices II - Subsequence Hard C++
451. Sort Characters By Frequency Medium C++
452. Minimum Number of Arrows to Burst Balloons Medium C C++
455. Assign Cookies Easy C C++
456. 132 Pattern Medium C++
458. Poor Pigs Hard C C++
463. Island Perimeter Easy C C++
502. IPO Hard C++
506. Relative Ranks Easy C C++
513. Find Bottom Left Tree Value Medium C++
514. Freedom Trail Hard C C++
523. Continuous Subarray Sum Medium C++
525. Contiguous Array Medium C++
543. Diameter of Binary Tree Easy C++
557. Reverse Words in a String III Easy C C++
576. Out of Boundary Paths Medium C++
606. Construct String from Binary Tree Easy C++
621. Task Scheduler Medium C C++
623. Add One Row to Tree Medium C++
633. Sum of Square Numbers Medium C++
645. Set Mismatch Easy C C++
647. Palindromic Substrings Medium C C++
648. Replace Words Medium C++
661. Image Smoother Easy C++
678. Valid Parenthesis String Medium C C++
713. Subarray Product Less Than K Medium C C++
739. Daily Temperatures Medium C C++
746. Min Cost Climbing Stairs Easy C++
752. Open the Lock Medium C C++
779. K-th Symbol in Grammar Medium C C++
786. K-th Smallest Prime Fraction Medium C C++
791. Custom Sort String Medium C C++
812. Largest Triangle Area Easy C C++
815. Bus Routes Hard C++
823. Binary Trees With Factors Medium C++
826. Most Profit Assigning Work Medium C++
834. Sum of Distances in Tree Hard C C++
844. Backspace String Compare Easy C++
846. Hand of Straights medium C C++
857. Minimum Cost to Hire K Workers Hard C++
861. Score After Flipping Matrix Medium C C++
867. Transpose Matrix Easy C C++
872. Leaf-Similar Trees Easy C++
876. Middle of the Linked List Easy C++
880. Decoded String at Index Medium C++
881. Boats to Save People Medium C C++
905. Sort Array By Parity Easy C++
908. Smallest Range I Easy C C++
930. Binary Subarrays With Sum Medium C++
931. Minimum Falling Path Sum Medium C++
935. Knight Dialer Easy C C++
938. Range Sum of BST Easy C++
945. Minimum Increment to Make Array Unique Medium C++
948. Bag of Tokens Medium C C++
974. Subarray Sums Divisible by K Medium C C++
977. Squares of a Sorted Array Easy C C++
979. Distribute Coins in Binary Tree Medium C++
988. Smallest String Starting From Leaf Medium C++
992. Subarrays with K Different Integers Hard C++
997. Find the Town Judge Easy C C++
1002. Find Common Characters Easy C C++
1026. Maximum Difference Between Node and Ancestor Medium C++
1043. Partition Array for Maximum Sum Medium C C++
1048. Longest String Chain Medium C++
1051. Height Checker Easy C C++
1081. Smallest Subsequence of Distinct Characters Medium C++
1122. Relative Sort Array Easy C C++
1137. N-th Tribonacci Number Easy C C++
1143. Longest Common Subsequence Medium C C++
1160. Find Words That Can Be Formed by Characters Easy C C++
1170. Compare Strings by Frequency of the Smallest Character Medium C++
1184. Distance Between Bus Stops Easy C C++
1207. Unique Number of Occurrences Easy C++
1208. Get Equal Substrings Within Budget Medium C C++
1219. Path with Maximum Gold Medium C C++
1220. Count Vowels Permutation Hard C C++
1232. Check If It Is a Straight Line Easy C++
1235. Maximum Profit in Job Scheduling Hard C++
1239. Maximum Length of a Concatenated String with Unique Characters Medium C C++
1255. Maximum Score Words Formed by Letters Hard C C++
1266. Minimum Time Visiting All Points Easy C C++
1269. Number of Ways to Stay in the Same Place After Some Steps Hard C++
1287. Element Appearing More Than 25% In Sorted Array Easy C C++
1289. Minimum Falling Path Sum II Hard C C++
1291. Sequential Digits Medium C C++
1325. Delete Leaves With a Given Value Medium C++
1337. The K Weakest Rows in a Matrix Easy C++
1347. Minimum Number of Steps to Make Two Strings Anagram Medium C C++
1356. Sort Integers by The Number of 1 Bits Easy C++
1361. Validate Binary Tree Nodes Medium C C++
1404. Number of Steps to Reduce a Number in Binary Representation to One Medium C C++
1422. Maximum Score After Splitting a String Easy C C++
1424. Diagonal Traverse II Medium C++
1425. Constrained Subsequence Sum Hard C++
1436. Destination City Easy C++
1441. Build an Array With Stack Operations Medium C++
1442. Count Triplets That Can Form Two Arrays of Equal XOR Medium C C++
1457. Pseudo-Palindromic Paths in a Binary Tree Medium C++
1458. Max Dot Product of Two Subsequences Hard C++
1464. Maximum Product of Two Elements in an Array Easy C C++
1481. Least Number of Unique Integers after K Removals Medium C++
1496. Path Crossing Easy C++
1503. Last Moment Before All Ants Fall Out of a Plank Medium C C++
1512. Number of Good Pairs Easy C C++
1535. Find the Winner of an Array Game Medium C C++
1544. Make The String Great Easy C C++
1561. Maximum Number of Coins You Can Get Medium C C++
1578. Minimum Time to Make Rope Colorful Medium C++
1582. Special Positions in a Binary Matrix Easy C C++
1600. Throne Inheritance Medium C++
1608. Special Array With X Elements Greater Than or Equal X Easy C C++
1609. Even Odd Tree Medium C++
1611. Minimum One Bit Operations to Make Integers Zero Hard C C++
1614. Maximum Nesting Depth of the Parentheses Easy C++ C
1624. Largest Substring Between Two Equal Characters Easy C C++
1630. Arithmetic Subarrays Medium C C++
1636. Sort Array by Increasing Frequency Easy C C++
1637. Widest Vertical Area Between Two Points Containing No Points Medium C C++
1642. Furthest Building You Can Reach Medium C++
1657. Determine if Two Strings Are Close Medium C C++
1658. Minimum Operations to Reduce X to Zero Medium C++
1662. Check If Two String Arrays are Equivalent Easy C C++
1669. Merge In Between Linked Lists Medium C++
1685. Sum of Absolute Differences in a Sorted Array Medium C C++
1688. Count of Matches in Tournament Easy C C++
1700. Number of Students Unable to Eat Lunch Easy C C++
1704. Determine if String Halves Are Alike Easy C C++
1716. Calculate Money in Leetcode Bank Easy C C++
1727. Largest Submatrix With Rearrangements Medium C C++
1743. Restore the Array From Adjacent Pairs Medium C++
1750. Minimum Length of String After Deleting Similar Ends Medium C C++
1758. Minimum Changes To Make Alternating Binary String Easy C C++
1759. Count Number of Homogenous Substrings Medium C C++
1770. Maximum Score from Performing Multiplication Operations Hard C++
1793. Maximum Score of a Good Subarray Hard C C++
1814. Count Nice Pairs in an Array Medium C++
1838. Frequency of the Most Frequent Element Medium C++
1846. Maximum Element After Decreasing and Rearranging Medium C C++
1863. Sum of All Subset XOR Totals Easy C C++
1877. Minimize Maximum Pair Sum in Array Medium C++ C++
1887. Reduction Operations to Make the Array Elements Equal Medium C C++
1897. Redistribute Characters to Make All Strings Equal Easy C C++
1903. Largest Odd Number in String Easy C C++
1913. Maximum Product Difference Between Two Pairs Easy C C++
1915. Number of Wonderful Substrings Medium C C++
1921. Eliminate Maximum Number of Monsters Medium C C++
1930. Unique Length-3 Palindromic Subsequences Medium C C++
1936. Add Minimum Number of Rungs Medium C C++
1971. Find if Path Exists in Graph Easy C C++
1980. Find Unique Binary String Medium C++
1992. Find All Groups of Farmland Medium C C++
2000. Reverse Prefix of Word Easy C C++
2009. Minimum Number of Operations to Make Array Continuous Hard C++
2018. Check if Word Can Be Placed In Crossword Medium C++
2037. Minimum Number of Moves to Seat Everyone Easy C C++
2038. Remove Colored Pieces if Both Neighbors are the Same Color Medium C C++
2050. Parallel Courses III Hard C++
2073. Time Needed to Buy Tickets Easy C C++
2108. Find First Palindromic String in the Array Easy C C++
2124. Check if All A's Appears Before All B's Easy C C++
2125. Number of Laser Beams in a Bank Medium C C++
2147. Number of Ways to Divide a Long Corridor Hard C C++
2149. Rearrange Array Elements by Sign Medium C C++
2225. Find Players With Zero or One Losses Medium C++
2235. Add Two Integers Easy C C++
2251. Number of Flowers in Full Bloom Hard C++
2264. Largest 3-Same-Digit Number in String Easy C C++
2331. Evaluate Boolean Binary Tree Easy C++
2353. Design a Food Rating System Medium C++
2370. Longest Ideal Subsequence Medium C C++
2373. Largest Local Values in a Matrix Easy C C++
2385. Amount of Time for Binary Tree to Be Infected Medium C++
2391. Minimum Amount of Time to Collect Garbage Medium C C++
2424. Longest Uploaded Prefix Medium C++
2433. Find The Original Array of Prefix Xor Medium C++
2441. Largest Positive Integer That Exists With Its Negative Easy C C++
2444. Count Subarrays With Fixed Bounds Hard C C++
2482. Difference Between Ones and Zeros in Row and Column Medium C C++
2485. Find the Pivot Integer Easy C C++
2486. Append Characters to String to Make Subsequence Medium C C++
2487. Remove Nodes From Linked List Medium C++
2540. Minimum Common Value Easy C C++
2597. The Number of Beautiful Subsets Medium C C++
2610. Convert an Array Into a 2D Array With Conditions Medium C++
2642. Design Graph With Shortest Path Calculator Hard C++
2706. Buy Two Chocolates Easy C C++
2742. Painting the Walls Hard C++
2785. Sort Vowels in a String Medium C C++
2812. Find the Safest Path in a Grid Medium C++
2816. Double a Number Represented as a Linked List Medium C++
2849. Determine if a Cell Is Reachable at a Given Time Medium C C++
2864. Maximum Odd Binary Number Easy C C++
2870. Minimum Number of Operations to Make Array Empty Medium C++
2958. Length of Longest Subarray With at Most K Frequency Medium C++
2962. Count Subarrays Where Max Element Appears at Least K Times Medium C C++
2966. Divide Array Into Arrays With Max Difference Medium C C++
2971. Find Polygon With the Largest Perimeter Medium C C++
2997. Minimum Number of Operations to Make Array XOR Equal to K Medium C C++
3005. Count Elements With Maximum Frequency Easy C++
3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K Medium C++
3068. Find the Maximum Sum of Node Values Hard C C++
3075. Maximize Happiness of Selected Children Medium C C++
3110. Score of a String Easy C C++

License

This project is licensed under the terms of the MIT License.

Copyright © 2023-2024 Alfi Maulana

About

A dedicated workspace and archive for my LeetCode submissions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.0%
  • C 24.1%
  • CMake 9.0%
  • Python 0.9%