Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
rene-d committed Apr 10, 2018
1 parent 83b33c1 commit 2729e8d
Show file tree
Hide file tree
Showing 368 changed files with 486 additions and 339 deletions.
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}"
},
{
"name": "(lldb) algo/hamming-distance",
"type": "cppdbg",
Expand Down
19 changes: 3 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,11 @@ macro(add_hackerrank_py name)
add_test_hackerrank(${name})
endmacro(add_hackerrank_py nae)


# C++
add_subdirectory("cpp")

# Python
add_subdirectory("python")

# Mathematics
add_subdirectory("math")

# Algo
add_subdirectory("algo")

# Data Structures
add_subdirectory("data")

# Project Euler+
add_subdirectory("mathematics")
add_subdirectory("algorithms")
add_subdirectory("data-structures")
add_subdirectory("projecteuler")

add_subdirectory("fp")
add_subdirectory("tutorials")
124 changes: 0 additions & 124 deletions algo/CMakeLists.txt

This file was deleted.

9 changes: 9 additions & 0 deletions algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_subdirectory(warmup)
add_subdirectory(implementation)
add_subdirectory(strings)
add_subdirectory(greedy)
add_subdirectory(arrays-and-sorting)
add_subdirectory(search)
add_subdirectory(dynamic-programming)
add_subdirectory(bit-manipulation)
add_subdirectory(game-theory)
13 changes: 13 additions & 0 deletions algorithms/arrays-and-sorting/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
add_hackerrank_py(big-sorting.py)
add_hackerrank_py(find-the-median.py)
add_hackerrank_py(insertion-sort.py)
add_hackerrank_py(countingsort1.py)
add_hackerrank_py(insertionsort2.py)
add_hackerrank_py(countingsort4.py)
add_hackerrank_py(tutorial-intro.py)
add_hackerrank_py(runningtime.py)
add_hackerrank(insertion-sort insertion-sort.cpp)
add_hackerrank_py(countingsort2.py)
add_hackerrank_py(insertionsort1.py)
add_hackerrank_py(closest-numbers.py)
add_hackerrank_py(quicksort1.py)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions algorithms/bit-manipulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_hackerrank_py(lonely-integer.py)
add_hackerrank(hamming-distance hamming-distance.cpp)
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions algorithms/dynamic-programming/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_hackerrank(longest-increasing-subsequent longest-increasing-subsequent.cpp)
File renamed without changes.
1 change: 1 addition & 0 deletions algorithms/game-theory/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_hackerrank_py(game-of-stones-1.py)
File renamed without changes.
5 changes: 5 additions & 0 deletions algorithms/greedy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
add_hackerrank_py(marcs-cakewalk.py)
add_hackerrank_py(grid-challenge.py)
add_hackerrank_py(beautiful-pairs.py)
add_hackerrank(maximum-perimeter-triangle maximum-perimeter-triangle.cpp)
add_hackerrank_py(sherlock-and-the-beast.py)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
62 changes: 62 additions & 0 deletions algorithms/implementation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
add_hackerrank_py(library-fine.py)
add_hackerrank_py(cut-the-sticks.py)
add_hackerrank_py(climbing-the-leaderboard.py)
add_hackerrank_py(manasa-and-stones.py)
add_hackerrank_py(breaking-best-and-worst-records.py)
add_hackerrank_py(drawing-book.py)
add_hackerrank_py(chocolate-feast.py)
add_hackerrank_py(flatland-space-stations.py)
add_hackerrank_py(sherlock-and-squares.py)
add_hackerrank_py(bigger-is-greater.py)
add_hackerrank_py(apple-and-orange.py)
add_hackerrank_py(non-divisible-subset.py)
add_hackerrank_py(encryption.py)
add_hackerrank_py(migratory-birds.py)
add_hackerrank_py(find-digits.py)
add_hackerrank_py(absolute-permutation.py)
add_hackerrank_py(grading.py)
add_hackerrank_py(jumping-on-the-clouds.py)
add_hackerrank_py(save-the-prisoner.py)
add_hackerrank(cavity-map cavity-map.cpp)
add_hackerrank_py(day-of-the-programmer.py)
add_hackerrank_py(sock-merchant.py)
add_hackerrank_py(happy-ladybugs.py)
add_hackerrank_py(append-and-delete.py)
add_hackerrank_py(picking-numbers.py)
add_hackerrank(electronics-shop electronics-shop.cpp)
add_hackerrank_py(cats-and-a-mouse.py)
add_hackerrank(counting-valleys counting-valleys.cpp)
add_hackerrank_py(almost-sorted.py)
add_hackerrank_py(divisible-sum-pairs.py)
add_hackerrank_py(repeated-string.py)
add_hackerrank_py(fair-rations.py)
add_hackerrank_py(the-time-in-words.py)
add_hackerrank_py(strange-advertising.py)
add_hackerrank_py(magic-square-forming.py)
add_hackerrank_py(kaprekar-numbers.py)
add_hackerrank_py(queens-attack-2.py)
add_hackerrank_py(taum-and-bday.py)
add_hackerrank_py(strange-code.py)
add_hackerrank_py(the-grid-search.py)
add_hackerrank_py(circular-array-rotation.py)
add_hackerrank_py(kangaroo.py)
add_hackerrank_py(matrix-rotation-algo.py)
add_hackerrank_py(designer-pdf-viewer.py)
add_hackerrank_py(equality-in-a-array.py)
add_hackerrank_py(angry-professor.py)
add_hackerrank_py(service-lane.py)
add_hackerrank_py(between-two-sets.py)
add_hackerrank_py(the-hurdle-race.py)
add_hackerrank_py(minimum-distances.py)
add_hackerrank_py(extra-long-factorials.py)
add_hackerrank_py(beautiful-days-at-the-movies.py)
add_hackerrank_py(beautiful-triplets.py)
add_hackerrank_py(acm-icpc-team.py)
add_hackerrank_py(jumping-on-the-clouds-revisited.py)
add_hackerrank_py(utopian-tree.py)
add_hackerrank_py(lisa-workbook.py)
add_hackerrank_py(the-birthday-bar.py)
add_hackerrank_py(organizing-containers-of-balls.py)
add_hackerrank_py(permutation-equation.py)
add_hackerrank_py(bon-appetit.py)
add_hackerrank_py(halloween-sale.py)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions algorithms/search/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_hackerrank_py(pairs.py)
add_hackerrank_py(icecream-parlor.py)
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions algorithms/strings/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
add_hackerrank_py(sherlock-and-valid-string.py)
add_hackerrank_py(making-anagrams.py)
add_hackerrank_py(game-of-thrones.py)
add_hackerrank_py(reduced-string.py)
add_hackerrank_py(the-love-letter-mystery.py)
add_hackerrank_py(beautiful-binary-string.py)
add_hackerrank_py(funny-string.py)
add_hackerrank_py(alternating-characters.py)
add_hackerrank_py(gem-stones.py)
add_hackerrank_py(palindrome-index.py)
add_hackerrank_py(common-child.py)
add_hackerrank_py(string-construction.py)
add_hackerrank_py(anagram.py)
add_hackerrank_py(mars-exploration.py)
add_hackerrank_py(weighted-uniform-string.py)
add_hackerrank_py(determining-dna-health.py)
add_hackerrank_py(sherlock-and-anagrams.py)
add_hackerrank_py(two-strings.py)
add_hackerrank_py(caesar-cipher-1.py)
add_hackerrank(morgan-and-a-string morgan-and-a-string.c)
add_hackerrank(common-child common-child.cpp)
add_hackerrank_py(richie-rich.py)
add_hackerrank_py(camelcase.py)
add_hackerrank_py(pangrams.py)
add_hackerrank_py(separate-the-numbers.py)
add_hackerrank_py(hackerrank-in-a-string.py)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions algorithms/warmup/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
add_hackerrank(solve-me-first solve-me-first.cpp)
add_hackerrank_py(mini-max-sum.py)
add_hackerrank(simple-array-sum simple-array-sum.cpp)
add_hackerrank(compare-the-triplets compare-the-triplets.cpp)
add_hackerrank_py(plus-minus.py)
add_hackerrank_py(time-conversion.py)
add_hackerrank_py(birthday-cake-candles.py)
add_hackerrank_py(diagonal-difference.py)
add_hackerrank_py(a-very-big-sum.py)
add_hackerrank_py(staircase.py)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 6 additions & 39 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,39 +1,6 @@
add_hackerrank(cpp-hello-world cpp-hello-world.cpp)
add_hackerrank(cpp-input-and-output cpp-input-and-output.cpp)
add_hackerrank(c-tutorial-basic-data-types c-tutorial-basic-data-types.cpp)
add_hackerrank(cpp-variadics cpp-variadics.cpp)
add_hackerrank(bitset-1 bitset-1.cpp)
add_hackerrank(c-class-templates c-class-templates.cpp)
add_hackerrank(magic-spells magic-spells.cpp)
add_hackerrank(c-tutorial-for-loop c-tutorial-for-loop.cpp)
add_hackerrank(deque-stl deque-stl.cpp)
add_hackerrank(c-tutorial-functions c-tutorial-functions.cpp)
add_hackerrank(c-tutorial-pointer c-tutorial-pointer.cpp)
add_hackerrank(abstract-classes-polymorphism abstract-classes-polymorphism.cpp)
add_hackerrank(attribute-parser attribute-parser.cpp)
add_hackerrank(c-tutorial-stringstream c-tutorial-stringstream.cpp)
add_hackerrank(inherited-code inherited-code.cpp)
add_hackerrank(vector-sort vector-sort.cpp)
add_hackerrank(arrays-introduction arrays-introduction.cpp)
add_hackerrank(box-it box-it.cpp)
add_hackerrank(c-tutorial-strings c-tutorial-strings.cpp)
add_hackerrank(c-tutorial-struct c-tutorial-struct.cpp)
add_hackerrank(c-tutorial-class c-tutorial-class.cpp)
add_hackerrank(variable-sized-arrays variable-sized-arrays.cpp)
add_hackerrank(classes-objects classes-objects.cpp)
add_executable(exceptional-server exceptional-server.cpp)
add_hackerrank(virtual-functions virtual-functions.cpp)
add_hackerrank(vector-erase vector-erase.cpp)
add_hackerrank(cpp-lower-bound cpp-lower-bound.cpp)
add_hackerrank(cpp-sets cpp-sets.cpp)
add_hackerrank(cpp-maps cpp-maps.cpp)
add_hackerrank(prettyprint prettyprint.cpp)
add_hackerrank(operator-overloading operator-overloading.cpp)
add_hackerrank(inheritance-introduction inheritance-introduction.cpp)
add_hackerrank(rectangle-area rectangle-area.cpp)
add_hackerrank(multi-level-inheritance-cpp multi-level-inheritance-cpp.cpp)
add_hackerrank(accessing-inherited-functions accessing-inherited-functions.cpp)
add_hackerrank(cpp-class-template-specialization cpp-class-template-specialization.cpp)
add_hackerrank(overload-operators overload-operators.cpp)
add_hackerrank(attending-workshops attending-workshops.cpp)
add_hackerrank(preprocessor-solution preprocessor-solution.cpp)
add_subdirectory(classes)
add_subdirectory(cpp-introduction)
add_subdirectory(cpp-strings)
add_subdirectory(inheritance)
add_subdirectory(other-concepts)
add_subdirectory(stl)
8 changes: 8 additions & 0 deletions cpp/classes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
add_hackerrank(box-it box-it.cpp)
add_hackerrank(c-tutorial-class c-tutorial-class.cpp)
add_hackerrank(classes-objects classes-objects.cpp)
add_hackerrank(c-tutorial-struct c-tutorial-struct.cpp)
add_hackerrank(abstract-classes-polymorphism abstract-classes-polymorphism.cpp)
add_hackerrank(virtual-functions virtual-functions.cpp)
add_hackerrank(inherited-code inherited-code.cpp)
add_hackerrank(exceptional-server exceptional-server.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions cpp/cpp-introduction/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_hackerrank(c-tutorial-for-loop c-tutorial-for-loop.cpp)
add_hackerrank(cpp-input-and-output cpp-input-and-output.cpp)
add_hackerrank(cpp-hello-world cpp-hello-world.cpp)
add_hackerrank(c-tutorial-conditional-if-else c-tutorial-conditional-if-else.cpp)
add_hackerrank(c-tutorial-pointer c-tutorial-pointer.cpp)
add_hackerrank(c-tutorial-functions c-tutorial-functions.cpp)
add_hackerrank(variable-sized-arrays variable-sized-arrays.cpp)
add_hackerrank(arrays-introduction arrays-introduction.cpp)
add_hackerrank(c-tutorial-basic-data-types c-tutorial-basic-data-types.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions cpp/cpp-strings/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_hackerrank(attribute-parser attribute-parser.cpp)
add_hackerrank(c-tutorial-stringstream c-tutorial-stringstream.cpp)
add_hackerrank(c-tutorial-strings c-tutorial-strings.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions cpp/inheritance/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
add_hackerrank(rectangle-area rectangle-area.cpp)
add_hackerrank(inheritance-introduction inheritance-introduction.cpp)
add_hackerrank(accessing-inherited-functions accessing-inherited-functions.cpp)
add_hackerrank(magic-spells magic-spells.cpp)
add_hackerrank(multi-level-inheritance-cpp multi-level-inheritance-cpp.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions cpp/other-concepts/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
add_hackerrank(attending-workshops attending-workshops.cpp)
add_hackerrank(c-class-templates c-class-templates.cpp)
add_hackerrank(preprocessor-solution preprocessor-solution.cpp)
add_hackerrank(bitset-1 bitset-1.cpp)
add_hackerrank(cpp-variadics cpp-variadics.cpp)
add_hackerrank(cpp-class-template-specialization cpp-class-template-specialization.cpp)
add_hackerrank(overload-operators overload-operators.cpp)
add_hackerrank(operator-overloading operator-overloading.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions cpp/stl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
add_hackerrank(vector-erase vector-erase.cpp)
add_hackerrank(cpp-sets cpp-sets.cpp)
add_hackerrank(cpp-lower-bound cpp-lower-bound.cpp)
add_hackerrank(deque-stl deque-stl.cpp)
add_hackerrank(vector-sort vector-sort.cpp)
add_hackerrank(prettyprint prettyprint.cpp)
add_hackerrank(cpp-maps cpp-maps.cpp)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2729e8d

Please sign in to comment.