## Shortest path in a Maze | Lee algorithm

Given a maze in the form of the binary rectangular matrix, find length of the shortest path in a maze from given source to given destination.

Coding made easy

Given a maze in the form of the binary rectangular matrix, find length of the shortest path in a maze from given source to given destination.

A queue is a linear data structure which follows the FIFO (first-in first-out) principle. That means the object which is inserted first will be the first one out, followed by the object which was inserted next.

In previous post, we have discussed C++ implementation of queue data structure using class and standard libraries. In this article, we will make the class code generic by using C++ templates to support all data-types.

A queue is a linear data structure that serves as a container of objects that are inserted & removed according to the FIFO (first-in first-out) principle.

A queue is an linear data structure that serves as a collection of elements, with three main operations: enqueue, dequeue and peek. We have discussed about these operations in previous post and covered array implementation of queue data structure. In this post, linked list implementation of queue is discussed.

A queue is a linear data structure that serves as a collection of elements, with three main operations:

Given a chess board, find the shortest distance (minimum number of steps) taken by a Knight to reach given destination from given source.

Given a digraph (Directed Graph), find the total number of routes to reach the destination from given source that have exactly m edges.

Given an connected undirected graph, find if it contains any cycle or not.

In this post, we will discuss various methods to iterate over Deque in Java.

In this post, we will discuss various methods to iterate through Queue in Java.