We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb17cb8 commit 3021d9dCopy full SHA for 3021d9d
greedy_algorithms/gale_shapley.cpp
@@ -39,8 +39,6 @@ namespace greedy_algorithms {
39
* @param secondary_preferences the preferences of the secondary set should be a 2D vector
40
* @returns matches the stable matching between the two sets
41
*/
42
-
43
-namespace stable_matching {
44
std::vector<int> gale_shapley(const std::vector<std::vector<int>>& secondary_preferences, const std::vector<std::vector<int>>& primary_preferences) {
45
int num_elements = secondary_preferences.size();
46
std::vector<int> matches(num_elements, -1);
0 commit comments