Skip to content

Instantly share code, notes, and snippets.

View manuelmenzella's full-sized avatar

Manuel Menzella manuelmenzella

View GitHub Profile
#ifndef _LINKED_LIST
#define _LINKED_LIST
#include <memory>
template <class T>
struct LinkedListNode {
LinkedListNode(T value, std::unique_ptr<LinkedListNode<T>> next = nullptr)
: value(value), next(std::move(next)) { };
~LinkedListNode() {
#ifndef PRIORITY_QUEUE_H_
#define PRIORITY_QUEUE_H_
#include <iostream>
#include <vector>
#include <unordered_map>
#include <utility>
#include <functional>