Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
witek-formanski committed Jan 8, 2024
1 parent 03b3e9f commit cb94071
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/*
T(n) = O(log n)
M(n) = O(log n)
generowany ciąg nie jest najkrótszy z możliwych
*/

#include <iostream>
Expand All @@ -16,7 +18,7 @@ int get_bits_count(int n) {
return count;
}

std::vector<int> shortest_sequence(int n) {
std::vector<int> not_the_shortest_sequence(int n) {
int temp = 1;
std::vector<int> sequence{temp};
if (n == 1)
Expand All @@ -43,5 +45,5 @@ void print_vector(std::vector<int> vect) {

int main() {
for (int i = 1; i <= 100; i++)
print_vector(shortest_sequence(i));
print_vector(not_the_shortest_sequence(i));
}

0 comments on commit cb94071

Please sign in to comment.