Skip to content

Commit ecf9568

Browse files
committed
Add missing newlines after docstrings in problem files for consistency
1 parent fcf7a14 commit ecf9568

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/interview_workbook/leetcode/graphs/number_of_islands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
LeetCode link: https://leetcode.com/problems/number-of-islands/
66
Description: Count the number of islands in a 2D grid where ‘1’ represents land and ‘0’ represents water. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically.
77
"""
8+
89
from src.shared.problems import Category, Difficulty, register_problem
910

1011

src/interview_workbook/leetcode/stack/largest_rectangle_in_histogram.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Given a histogram represented by an array of bar heights,
55
find the area of the largest rectangle in it.
66
"""
7+
78
from interview_workbook.leetcode._registry import register_problem
89
from interview_workbook.leetcode._types import Category, Difficulty
910

@@ -28,9 +29,6 @@ def demo():
2829
return str(Solution().solve([2, 1, 5, 6, 2, 3]))
2930

3031

31-
from interview_workbook.leetcode._registry import register_problem
32-
from interview_workbook.leetcode._types import Category, Difficulty
33-
3432
register_problem(
3533
id=84,
3634
slug="largest_rectangle_in_histogram",

src/interview_workbook/leetcode/stack/min_stack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
TODO: Add problem description
55
"""
6+
67
from interview_workbook.leetcode._registry import register_problem
78
from interview_workbook.leetcode._types import Category, Difficulty
89

src/interview_workbook/leetcode/two_pointers/two_sum_ii.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
99
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
1010
"""
11+
1112
from src.interview_workbook.leetcode._runner import register_problem
1213
from src.interview_workbook.leetcode._types import Category, Difficulty
1314

@@ -36,8 +37,6 @@ def demo():
3637
return str(result)
3738

3839

39-
from src.interview_workbook.leetcode._runner import register_problem
40-
from src.interview_workbook.leetcode._types import Category, Difficulty
4140
register_problem(
4241
id=167,
4342
slug="two-sum-ii-input-array-is-sorted",

0 commit comments

Comments
 (0)