Source Code

 
Source code are the collections of coding interview questions and their source code. Click the title you are interested, you will find the download link of the source code. Cannot find what you want? Please check out my github and my Java coding book.

 

Binary search tree with parent feature

Implement binary search tree with parent pointer

A binary search tree is a type of ordered binary tree, where the left child has a value smaller than ...
circular queue

Implement circular queue using an array

A circular queue is a queue in which all elements are connected to form a circular. A circular queue can ...

Implement priority queue using an array

A priority queue is a queue in which you insert an element at the back (enqueue) and remove an element ...
graph feature

Implement graph as adjacency list

A graph is a data structure that consists of a set of nodes connected by edges. Graphs are used to ...
shortest path in matrix

Shortest path from source to destination in matrix – Code

Shortest path in matrix is to find the shortest distance from the the source to the destination. As you know, ...
autocorrect java

Autocorrect with trie and edit distance in Java

Google provides a powerful autocorrect for validating the keywords we type into the input text box. It checks against a ...
shortest path using Dijkstra java

Shortest path and 2nd shortest path using Dijkstra – code

Dijkstra's algorithm is an algorithm to find the shortest paths between vertices in a graph. It uses greedy technique by ...
build hierarchy tree listing

Build hierarchy tree – Code

Build hierarchy tree reads employee data and build a corporation hierarchy tree from the list. HashMap plays important role to ...
DFS and adjacent matrix

Depth first search in matrix using recursion

An adjacency matrix is a 2d array representing a graph. The nodes are the headings for the rows and columns ...
permutation

Permutation of multiple arrays and iterator – code

Permutation of multiple arrays and iterator has two tasks. First is the permutation of multiple arrays and output as an ...
Loading...

 

Comments are closed