Skip to content

Commit 4c9c3c1

Browse files
committed
chore: Add missing newline at end of file in multiple solution files
1 parent 9e2396d commit 4c9c3c1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

coin-change/eunice-hong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ function coinChange(coins: number[], amount: number): number {
2121

2222
// If dp[amount] is still Infinity, it means it's not possible to make the amount
2323
return dp[amount] === Infinity ? -1 : dp[amount];
24-
}
24+
}

find-minimum-in-rotated-sorted-array/eunice-hong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ function findMin(nums: number[]): number {
1212
}
1313
// return the next value
1414
return nums[(index + 1) % nums.length]
15-
};
15+
};

maximum-depth-of-binary-tree/eunice-hong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ function maxDepth(root: TreeNode | null): number {
2828
// tree has at least one child
2929
return 1 + Math.max(maxDepth(root.left), maxDepth(root.right))
3030
}
31-
};
31+
};

merge-two-sorted-lists/eunice-hong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ function mergeTwoLists(list1: ListNode | null, list2: ListNode | null): ListNode
3131
// list2's current node is smaller
3232
return new ListNode(list2.val, mergeTwoLists(list1, list2.next))
3333
}
34-
};
34+
};

word-search/eunice-hong.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ function exist(board: string[][], word: string): boolean {
4242

4343
// If we didn't find the word, return false
4444
return false;
45-
}
45+
}

0 commit comments

Comments
 (0)