Skip to content

Instantly share code, notes, and snippets.

View samitok's full-sized avatar

Mehmet Sami Tok samitok

  • Ankara, Turkey
View GitHub Profile
@samitok
samitok / bfs.cc
Last active December 16, 2018 17:59
Breadth First Search implementation for path finding
#include <iostream>
#include <list>
#include <unordered_set>
struct Node {
int index;
Node* parent;
std::list<Node*> children;
Node(int index, Node* parent) {