Skip to content

Commit 1f6b5c2

Browse files
committed
Refactor directory names in the repo
1 parent 7a3954b commit 1f6b5c2

35 files changed

+5
-5
lines changed
File renamed without changes.
File renamed without changes.

Binary Search/min_in_rotated_array.py renamed to binary_search/min_in_rotated_array.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
class Solution:
66
def findMin(self, nums: List[int]) -> int:
77
'''
8-
Use the Binary Search, while looking for the minimum.
8+
Use the binary_search, while looking for the minimum.
99
Time Complexity: O(log n)
1010
'''
1111

12-
# Init two pointers to perform Binary Search
12+
# Init two pointers to perform binary_search
1313
start, end = 0, len(nums) - 1
1414

1515
# Init result to +infinity (since we are looking for minimum)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Linked List/reverse_linked_list.py renamed to linked_lists/reverse_linked_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def reverseList(self, head: Optional[ListNode]) -> Optional[ListNode]:
1919
# The reverse LL is being stored in the 'prev' pointer
2020
prev, curr = None, head
2121

22-
# Iterate until we reach the end of the Linked List
22+
# Iterate until we reach the end of the linked_lists
2323
while curr:
2424
''' We move prev -> curr (the reversal step) and move curr -> curr.next '''
2525

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Trees/subtree_of_another_tree.py renamed to trees/subtree_of_another_tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def isSubtree(self, root: Optional[TreeNode], subRoot: Optional[TreeNode]) -> bo
3636

3737

3838
# Helper function to check if `p` and `q` are the same trees.
39-
# Refer to https://leetcode.com/problems/same-tree/ and `Trees/same_tree.py`
39+
# Refer to https://leetcode.com/problems/same-tree/ and `trees/same_tree.py`
4040
def isSameTree(self, p, q):
4141

4242
if not p and not q:
File renamed without changes.
File renamed without changes.

Two Pointers/two_sum_ii_input_sorted.py renamed to two_pointers/two_sum_ii_input_sorted.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Solution:
99
def twoSum(self, numbers: List[int], target: int) -> List[int]:
1010
'''
1111
Use two pointers and take advantage of the array being sorted.
12-
i.e. perform a Binary Search on the array.
12+
i.e. perform a binary_search on the array.
1313
1414
Time Complexity: O(n)
1515
'''
File renamed without changes.

0 commit comments

Comments
 (0)