Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/practice/simple-linked-list/.meta/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ List::~List() {
}
}

size_t List::size() const { return current_size; }
std::size_t List::size() const { return current_size; }

void List::push(int entry) {
auto element = new Element{entry};
Expand Down
4 changes: 2 additions & 2 deletions exercises/practice/simple-linked-list/.meta/example.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class List {
List(List&&) = delete;
List& operator=(List&&) = delete;

size_t size() const;
std::size_t size() const;
void push(int entry);
int pop();
void reverse();
Expand All @@ -31,7 +31,7 @@ class List {
};

Element* head{nullptr};
size_t current_size{0};
std::size_t current_size{0};
};

} // namespace simple_linked_list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace simple_linked_list {

size_t List::size() const {
std::size_t List::size() const {
// TODO: Return the correct size of the list.
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions exercises/practice/simple-linked-list/simple_linked_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class List {
List(List&&) = delete;
List& operator=(List&&) = delete;

size_t size() const;
std::size_t size() const;
void push(int entry);
int pop();
void reverse();
Expand All @@ -31,7 +31,7 @@ class List {
};

Element* head{nullptr};
size_t current_size{0};
std::size_t current_size{0};
};

} // namespace simple_linked_list
Expand Down