mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-02 18:20:21 +08:00
skip_list
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include <vector>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
// using namespace std;
|
||||
using std::vector;
|
||||
using std::endl;
|
||||
@@ -58,6 +60,8 @@ SkipList::SkipList() {
|
||||
header = new Node(-1, MAXLVL, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns random level for skip list;
|
||||
@@ -187,4 +191,6 @@ int main()
|
||||
|
||||
lst.displayList();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user