Skip to content

Commit 6728ddd

Browse files
committed
Added name of the problems
1 parent f37ad63 commit 6728ddd

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

easy/13.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Roman to Integer
2+
13
class Solution:
24
def romanToInt(self, s: str) -> int:
35
nums = {

easy/20.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Valid Parentheses
2+
13
class Solution:
24
def isValid(self, s: str) -> bool:
35
close = {'(':')', '[':']', '{':'}'}

hard/4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Median of Two Sorted Arrays
2+
13
class Solution:
24
def findMedianSortedArrays(self, nums1: List[int], nums2: List[int]) -> float:
35
nums = sorted(nums1 + nums2)

hard/42.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Trapping Rain Water
2+
13
class Solution:
24
def trap(self, height: List[int]) -> int:
35
if len(height) == 1: return 0

medium/6.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# ZigZag Conversion
2+
13
class Solution:
24
def convert(self, s: str, numRows: int) -> str:
35
if numRows == 1: return s

0 commit comments

Comments
 (0)