I have been posting java programs on various topics such as Binary tree, LinkedList , String, Number, ArrayList, HashMap etc. So I am consolidating list of programs to create an index post. I will keep adding links to this post whenever I add any new program. These are frequently asked programs in interview.
Binary tree :
1. Binary tree in java 2. Binary tree preorder traversal 3. Binary tree postorder traversal 4. Binary tree inorder traversal 5. Binary tree level order traversal 6. Binary tree spiral order traversal 7. Print leaf nodes of binary tree 8. Count leaf nodes in binary tree 9. Print all paths from root to leaf in binary tree
1. How to reverse String in java 2. Find length of String without using java inbuilt length method 3. Find all substrings of String in java 4. Find First non repeated character in a String 5. Java Program to check Palindrome String
1. How to swap two numbers without using temporary variables 2. Java program to check prime number 3. Find prime factors of number in java 4. Java Program to check armstrong number 5. Fibonacci series program in java 6. Java Program to check Palindrome Number
1. How to Sort ArrayList based on attributes using Comparator in java 2. How to sort ArrayList based on attributes using Comparable in java 3. How to remove duplicates from list in java 4. How to iterate over ArrayList in java