Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuashio committed Nov 29, 2022
1 parent 658b009 commit 7af8037
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/04/Solution/ch4_bitonic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// Returns: A boolean value: True for bitonic sequences, false otherwise.
bool is_bitonic(const std::vector<int> &v){
int count = v.size();
if (count < 4) return false;
if (count < 2) return true;

bool rising = false;
int i = 0;
Expand Down Expand Up @@ -88,7 +88,6 @@ int main(){
// std::vector<int> myvec = {5, 4, 6, 5, 4}; // No
// std::vector<int> myvec = {5, 4, 6, 5, 5}; // Yes

std::cout << std::endl;
std::cout << (is_bitonic(myvec) == true ? "Yes, it is bitonic." : "No, it is not bitonic.");
std::cout << std::endl << std::endl << std::flush;
return 0;
Expand Down

0 comments on commit 7af8037

Please sign in to comment.