Skip to content

Commit

Permalink
Organized files better for advanced algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Nov 4, 2024
1 parent 76e89a2 commit 2d94a21
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
Empty file modified clang_tidy.sh
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#ifndef SPLIT_K_MAX_H
#define SPLIT_K_MAX_H

#ifdef __cplusplus
#include <iostream>
#include <numeric>
#include <vector>
#include <algorithm>
#include <climits>
#endif

namespace helpers {
/**
Expand Down Expand Up @@ -59,3 +65,5 @@ int minimum_max_sub_sum(std::vector<int> &v, int K) {

return ans;
}

#endif
File renamed without changes.
1 change: 1 addition & 0 deletions src/algorithms/sorting/minimum_swaps.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <vector>
#include <cassert>
#include <map>
#include <algorithm>
#endif

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define CATCH_CONFIG_MAIN
#include "../../../src/algorithms/advanced/split_K_max.h"
#include "../../../src/algorithms/searching/split_K_max.h"
#include "../../../third_party/catch.hpp"

TEST_CASE("Testing split_K_max [1]") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../../../third_party/catch.hpp"
#include "../../../src/algorithms/advanced/convex_hull.h"
#include "../../../src/algorithms/sorting/convex_hull.h"

TEST_CASE("Testing convex hull with graham's scan [1]") {
std::vector<std::pair<int, int> > points = { {0, 3}, {1, 1}, {2, 2}, {4, 4}, {0, 0}, {1, 2}, {3, 1}, {3, 3}, {2, 4}, {4, 0} };
Expand Down

0 comments on commit 2d94a21

Please sign in to comment.