Skip to content

Commit

Permalink
Added new feature to tutorial folder
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Jul 7, 2024
1 parent 436fef6 commit ba08fb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tutorial/list/skip_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,16 @@ for(auto it = s.begin(); it != s.end(); it++){
// *(it) returns the value of each node(at the level 0)
std::cout << *it << '\n';
}
```

### **visualize**:
```cpp
#include <skip_list.h>

skip_list<int> s(3, 0.5)
s.insert(10);
s.insert(5);
s.insert(16);
// returns a .dot file that can easily be previewed using vscode's graphviz plugin
s.visualize();
```

0 comments on commit ba08fb9

Please sign in to comment.