DSA-Assignments

Log | Files | Refs | README

commit 74214041be19c92bb8d0f8ad9f788a915b864f39
parent 6715b6b6aaa31af89e9304efe7c7f3909eb6be40
Author: William Lindholm <a22willi@student.his.se>
Date:   Mon, 27 Nov 2023 15:10:27 +0100

Merge branch 'master' of https://github.com/LindholmLabs/DSA-Assignments

Diffstat:
MProblem1/Problem1.cpp | 8++++++++
MProblem2/Problem2.cpp | 24++++++++++--------------
2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/Problem1/Problem1.cpp b/Problem1/Problem1.cpp @@ -70,6 +70,14 @@ vector<int> bucketSort(vector<int> v) return sorted; } +vector<int> insertSort(vector<int> v) +{ + int i, j, temp; + for (i = 0; i < v.size(); i++) + { + + } +} /* * Function: findMax diff --git a/Problem2/Problem2.cpp b/Problem2/Problem2.cpp @@ -1,20 +1,15 @@ -// Problem2.cpp : This file contains the 'main' function. Program execution begins and ends there. -// + #include <iostream> +#include <queue> +using namespace std; int main() { - std::cout << "Hello World!\n"; -} - -// Run program: Ctrl + F5 or Debug > Start Without Debugging menu -// Debug program: F5 or Debug > Start Debugging menu + queue<int> network; -// Tips for Getting Started: -// 1. Use the Solution Explorer window to add/manage files -// 2. Use the Team Explorer window to connect to source control -// 3. Use the Output window to see build output and other messages -// 4. Use the Error List window to view errors -// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project -// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file + while (!network.empty()) { + cout << ' ' << network.front(); + network.pop(); + } +} +\ No newline at end of file