Category Archives: Interview Questions

Write a program to move all negative elements to end in an int array ?

In this post, we will learn How to write a program to move all negative elements to end in an int array with or without using existing data Structures in java? Approach 1 : without using existing Data Structures 

Approach 2: with using existing Data Structures 

 Output of above program: 3 45 2… Read More »

There is a stream of words which contains Anagrams. How would you print anagrams in a single bucket from that stream?

Hello Friends, In this post we will talk and learn about one of the  very important java programming interview question  let’s say  There is a stream of words which contains Anagrams. How would you print anagrams in a single bucket from that stream? Below Algorithm and data stricture we will use to implement same: 1) Use… Read More »