mirror of
https://github.com/tiennm99/HCMUT.git
synced 2026-10-03 05:18:49 +00:00
Update Assignment
This commit is contained in:
1 parent
192064fc10
commit
8ce89d7334
6 files changed
+371
No files matched your search
@@ -0,0 +1,61 @@
|
||||
#include"UnrolledLinkedList.h"
|
||||
|
||||
void UnrolledLinkedList::add(int val) {
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
int UnrolledLinkedList::getAt(int pos) {
|
||||
if (pos < 0 || pos >= size)
|
||||
throw "IndexOutOfBoundsException"; // check whether pos is valid or not
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
void UnrolledLinkedList::setAt(int pos, int val) {
|
||||
if (pos < 0 || pos >= size)
|
||||
throw "IndexOutOfBoundsException"; // check whether pos is valid or not
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
|
||||
void UnrolledLinkedList::insertAt(int pos, int val) {
|
||||
if (pos < 0 || pos > size)
|
||||
throw "IndexOutOfBoundsException"; // check whether pos is valid or not
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
void UnrolledLinkedList::deleteAt(int pos)
|
||||
{
|
||||
if (pos < 0 || pos >= size)
|
||||
throw "IndexOutOfBoundsException"; // check whether pos is valid or not
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
int UnrolledLinkedList::firstIndexOf(int val) {
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
int UnrolledLinkedList::lastIndexOf(int val) {
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
bool UnrolledLinkedList::contains(int val) {
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
void UnrolledLinkedList::reverse() {
|
||||
// TODO
|
||||
|
||||
}
|
||||
|
||||
int* UnrolledLinkedList::toArray() {
|
||||
// TODO
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user