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? There are more in my github. Also you can check out the complete list of coding interview questions in my pocket book.

 

Huffman coding and compression

Huffman coding and compression – Code

What is Huffman code? Huffman code is a particular type of optimal prefix code. It is commonly used for lossless ...
Read More
convert prefix to postfix java

Prefix to postfix (2 solutions) – Code

In mathematics expressions, there are infix, prefix and postfix notations. Infix notation is characterized by the placement of operators between ...
Read More
Shortest path in matrix java

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, ...
Read More
Find K closest points to center java

Find K closest points to origin (2 solutions) – code

What is K closest points problem? Find K closest points is to find closest points to the pointer(0,0) (it is ...
Read More
Find all subset of string in dictionary java

Find all subset of string in dictionary – code

Find all subset of string in dictionary is to find the subset of an input string that exists in dictionary ...
Read More
Build status hierarchy object java

Convert hierarchy to nested objects – code

There are online tools that convert JSON file to objects. The same idea applies to "convert hierarchy to nested objects" ...
Read More
top trending topic

Find top trending topics in twitter last hour (2 solutions) – code

Find top trending topics last hour (last day, month, year) is to find the topics that were tweeted most for ...
Read More
BiDirectional BFS

Bi-directional BFS and examples – Code

A bi-directional search is to start search from two ends simultaneously. The drive of this is to make the search ...
Read More
Java User defined comparators

Java custom Comparators and examples

Java custom Comparators are important to sort the user defined classes. Here we give examples on how to implement user ...
Read More
Java node data structures diagram

What are the missing data structures in java collections and implementations?

Java collections provides APIs for many data structures such as ArrayList, Linkedlist, HashMap. They are very handy for us to ...
Read More

 

Comments are closed