• 13 August

    Count all paths from top left to bottom right of MxN matrix

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see about how to count all paths from top left to bottom right of MxN matrix. Problem We need to count all paths from top left to bottom right of MxN matrix. You can […]

  • 12 August

    Memoization example in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this tutorial, we will see about Memoization example in java. Let me start with the question. Would you like to do same task again and again when you know that it is going to give you same […]

  • 12 August

    Intersection of two linked lists

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In this post, we will see how to find Intersection of two linked lists. Problem Given two singly linked lists, find if two linked lists intersect. If they intersect, find intersection point. Solution Here is simple algorithm to […]

  • 04 August

    LRU cache implementation in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see LRU cache implementation in java. Problem Design a Least recently used cache implementation in java. It should have below properties. bounded size: It should have bounded size to take care of memory limits. […]

  • 14 June

    Longest Substring Without Repeating Characters

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this tutorial, we will see Find Longest Substring Without Repeating Characters in java. Problem We need to find Longest Substring Without Repeating Characters Solution Brute force solution Find all the substring and check the Longest Substring Without […]

  • 24 December

    Linear Search in Java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see about linear search in java. Linear search is simple sequential search in which target element is searched one by one in the array. If element is found in the array then index […]

  • 08 November

    Dijkstra’s algorithm in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see Dijkstra algorithm for find shortest path from source to all other vertices. Problem You will be given graph with weight for each edge,source vertex and you need to find minimum distance from […]

  • 16 September

    Doubly Linked List in java

    If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see about Doubly LinkedList implementation in java. We have already seen the implementation of singly linked list. You can consider this as an extension of Singly linked list.It is quite complex to implement […]

  • 22 August

    Sorting algorithms in java

    If you want to practice data structure and algorithm programs, you can go through 100+ java coding interview questions. In this post, we will see about Sorting algorithms in java. A Sorting algorithm is an algorithm which puts collection of elements in specific order. For example: You want to sort list of numbers into ascending order […]