From 7eee5a78005a9a569186d2c8b4b645a818ab9bf1 Mon Sep 17 00:00:00 2001 From: Stoycho Kyosev Date: Sun, 6 Oct 2024 07:04:44 -0400 Subject: Cleanup --- Seminar03/task01.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 Seminar03/task01.cpp (limited to 'Seminar03/task01.cpp') diff --git a/Seminar03/task01.cpp b/Seminar03/task01.cpp deleted file mode 100644 index 2a2eff3..0000000 --- a/Seminar03/task01.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include -#include - -// Сложност по време: ? -// Сложност по памет: ? -void printAllBinaryNumbers(size_t n) { - std::queue q; - - q.push("1"); - - while(n) { - std::string currentNumber = q.front(); - q.pop(); - - std::cout << currentNumber << " "; - - q.push(currentNumber + "0"); - q.push(currentNumber + "1"); - - n--; - } -} - -int main() { - printAllBinaryNumbers(10); -} \ No newline at end of file -- cgit v1.3.1-26-gb76a