Category Archives: Tutorials

tutorials

How HashMap works in java

Believe it or not but you will be asked questions on HashMaps in 8 out of 10 interviews .And this is the most frequently asked question How HashMap works in java ? While some candidates are able to answer this question but they fail to answer the surrounding questions .In this article we will explain… Read More »

Linked list creation and manipulation

Here’s the code to create a linked list. And perform various operations on it. U can use this code for reference . The code is self explanatory.

Merge Sort Code

Merge Sort belongs to category of divide and conquer algorithms. Which means it divides the problem into  small subproblems, solves them and then combine the solutions of these subproblems to generate solution  of the original problem.Merge Sort compares elements with each other for sorting the list. The steps followed to mergesort are are: Divide the unsorted list… Read More »

Quick Sort Code

Quick Sort belongs to the category ofdivide and conquer algorithms. Quicksort  divides a large list into two smaller lists around a selected pivot . Quicksort can then recursively sort the sub-lists.It sorts the elements inplace. The steps followed are are: Select an element, called a pivot, from the list. Reorder the list so that all elements with values… Read More »