Profile cover photo
Profile photo
Anand Kumar
260 followers
260 followers
About
Anand's posts

Post has attachment
Stack implementation using Linked List

Post has attachment
Stack implementation using Linked List
We have seen Stack implementation using array in our earlier tutorials. Now lets see same stack implementation using Linked List and how to push() and pop() values in Stack. Below is the simple example to push() integers into Stack internally having Linked ...

Post has attachment
Binary Tree traversal Preorder, Inorder and Postorder

Post has attachment
Create Binary Tree - Preorder, Inorder and Postorder Traversal
Lets see simple java code to create Binary Tree and all 3 traversals like Preorder, Inorder and Postorder. Used 2 classes called BST (used for binary tree node) and BinaryTree to construct Binary Tree and for traversals. class BST { BST left ; // Left subtr...

Post has attachment
Longest Substring without duplicate character
There can be N number of questions can be framed by using String, like longest substring without duplicate character, substring with repeated characters, most consecutive characters in substring etc., Now let's see simple java code to find the longest subst...

Post has attachment
Below are the few set of java interview questions to get more knowledge on core java basics.

Post has attachment
Java Interview Questions - 10
Below are the few set of java interview questions to get more knowledge on core java basics. For most of the questioned we need to find the output and for few questions have to get any compile time error or run-time error?? QUESTION - 1 public class ArrayTe...

Post has attachment
Just by name "Queue" we can think of big "Q" for Movie tickets booking in our olden days or have read about FIFO order. But here "PriorityQueue" is little different and it follows same Queue functionality with Priority items are out first.
Lets take scenario where there are lot of incoming tickets in support system with multiple priorities (CRITICAL, HIGH, MEDIUM, LOW). Here support team needs to serve all tickets based on their priority than their logged order, like critical priorities first and then high, medium and low priority tickets at last.
Lets see simple example class which takes multiple Tickets along with priority and while we are reading critical tickets 1st, high tickets 2nd, medium tickets 3rd and low priority tickets at last.

Post has attachment
PriorityQueue based on custom Priority setting
Just by name " Queue " we can think of big "Q" for Movie tickets booking in our olden days or have read about FIFO order. But here " PriorityQueue " is little different and it follows same Queue functionality with Priority items are out first. Lets take sce...

Post has attachment
Wait while more posts are being loaded