Skip to content

Commit

Permalink
Update cpp formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
metopa committed Nov 28, 2019
1 parent f6ab755 commit b2427f2
Show file tree
Hide file tree
Showing 296 changed files with 296 additions and 0 deletions.
1 change: 1 addition & 0 deletions epi_judge_cpp/a_b_sqrt2.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
vector<double> GenerateFirstKABSqrt2(int k) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/absent_value_array.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdexcept>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
using std::invalid_argument;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/adding_credits.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/fmt_print.h"
#include "test_framework/generic_test.h"
#include "test_framework/test_config.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/advance_by_offsets.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
bool CanReachEnd(const vector<int>& max_advance_steps) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/alternating_array.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <string>
#include <vector>

#include "test_framework/fmt_print.h"
#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/anagrams.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <string>
#include <vector>

#include "test_framework/generic_test.h"
using std::string;
using std::vector;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/apply_permutation.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
void ApplyPermutation(vector<int> perm, vector<int>* A_ptr) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/arbitrage.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/bonus.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/bst_from_preorder.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "bst_node.h"
#include "test_framework/generic_test.h"
using std::unique_ptr;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/bst_from_sorted_array.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <memory>
#include <vector>

#include "bst_node.h"
#include "test_framework/binary_tree_utils.h"
#include "test_framework/generic_test.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/bst_merge.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "bst_prototype_shared_ptr.h"
#include "test_framework/generic_test.h"
using std::shared_ptr;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/bst_to_sorted_list.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <memory>
#include <vector>

#include "bst_prototype_shared_ptr.h"
#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/buy_and_sell_stock.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
double BuyAndSellStockOnce(const vector<double>& prices) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/buy_and_sell_stock_k_times.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/buy_and_sell_stock_twice.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
double BuyAndSellStockTwice(const vector<double>& prices) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/calendar_rendering.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
using std::vector;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/collatz_checker.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/combinations.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/convert_base.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/copy_posting_list.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <map>
#include <memory>

#include "posting_list_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/count_inversions.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/deadlock_detection.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdexcept>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/defective_jugs.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
using std::vector;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/delete_from_list.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "list_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/delete_kth_last_from_list.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "list_node.h"
#include "test_framework/generic_test.h"
using std::shared_ptr;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/descendant_and_ancestor_in_bst.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "bst_node.h"
#include "test_framework/binary_tree_utils.h"
#include "test_framework/generic_test.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/directory_path_normalization.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;
string ShortestEquivalentPath(const string& path) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/do_lists_overlap.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <set>
#include <stdexcept>

#include "list_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/do_terminated_lists_overlap.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "list_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/drawing_skyline.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/fmt_print.h"
#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/dutch_national_flag.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <array>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/element_appearing_once.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/enumerate_balanced_parentheses.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <string>
#include <vector>

#include "test_framework/generic_test.h"
using std::string;
using std::vector;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/enumerate_palindromic_decompositions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <iterator>
#include <string>
#include <vector>

#include "test_framework/generic_test.h"
using std::string;
using std::vector;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/enumerate_trees.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <algorithm>
#include <stack>
#include <vector>

#include "binary_tree_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/evaluate_rpn.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;
int Evaluate(const string& expression) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/even_odd_array.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <set>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/find_salary_threshold.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/first_missing_positive_entry.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/graph_clone.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <queue>
#include <unordered_set>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/gray_code.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <algorithm>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/group_equal_entries.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <set>
#include <string>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/h_index.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
int HIndex(vector<int> citations) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/hanoi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stack>
#include <string>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/huffman_coding.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <string>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
using std::string;
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/insert_in_list.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "list_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/insert_operators_in_string.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/int_as_array_increment.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
vector<int> PlusOne(vector<int> A) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/int_as_array_multiply.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
vector<int> Multiply(vector<int> num1, vector<int> num2) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/intersect_sorted_arrays.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/interval_add.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/fmt_print.h"
#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/intervals_union.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_anonymous_letter_constructible.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;

Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_array_dominated.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <algorithm>
#include <iterator>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_circuit_wirable.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdexcept>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/serialization_traits.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_list_cyclic.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <memory>

#include "list_node.h"
#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_string_decomposable_into_words.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <string>
#include <unordered_set>
#include <vector>

#include "test_framework/generic_test.h"
#include "test_framework/test_failure.h"
#include "test_framework/timed_executor.h"
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_string_in_matrix.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <vector>

#include "test_framework/generic_test.h"
using std::vector;
bool IsPatternContainedInGrid(const vector<vector<int>>& grid,
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_string_palindromic.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;
bool IsPalindromic(const string& s) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_string_palindromic_punctuation.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;
bool IsPalindrome(const string& s) {
Expand Down
1 change: 1 addition & 0 deletions epi_judge_cpp/is_string_permutable_to_palindrome.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>

#include "test_framework/generic_test.h"
using std::string;

Expand Down
Loading

0 comments on commit b2427f2

Please sign in to comment.