Skip to content

Commit c2a8283

Browse files
committed
refactor: remove function prototypes from binary search files
1 parent 2e7718c commit c2a8283

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

cpp/Binary Search/cutting_wood.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#include <vector>
22
#include <algorithm>
33

4-
// Function prototype
5-
bool cutsEnoughWood(int H, int k, std::vector<int>& heights);
6-
74
int cuttingWood(std::vector<int>& heights, int k) {
85
int left = 0;
96
int right = *std::max_element(heights.begin(), heights.end());

cpp/Binary Search/first_and_last_occurrences_of_a_number.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#include <vector>
22

3-
// Function prototypes
4-
int lowerBoundBinarySearch(std::vector<int>& nums, int target);
5-
int upperBoundBinarySearch(std::vector<int>& nums, int target);
6-
73
std::vector<int> firstAndLastOccurrencesOfANumber(std::vector<int>& nums, int target) {
84
int lowerBound = lowerBoundBinarySearch(nums, target);
95
int upperBound = upperBoundBinarySearch(nums, target);

0 commit comments

Comments
 (0)